home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-05-21 | 23.7 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v20 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 34 37 3a 34 30 20 31 | 39 39 38 0a 3b 3b 3b 20 |:47:40 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 63 6f 6d 69 |s-20.3/l|isp/comi|
|000000a0| 6e 74 2f 73 68 65 6c 6c | 2e 65 6c 0a 3b 3b 3b 20 |nt/shell|.el.;;; |
|000000b0| 65 6d 61 63 73 20 76 65 | 72 73 69 6f 6e 20 32 30 |emacs ve|rsion 20|
|000000c0| 2e 34 20 22 45 6d 65 72 | 61 6c 64 22 20 58 45 6d |.4 "Emer|ald" XEm|
|000000d0| 61 63 73 20 20 4c 75 63 | 69 64 2e 0a 3b 3b 3b 20 |acs Luc|id..;;; |
|000000e0| 62 79 74 65 63 6f 6d 70 | 20 76 65 72 73 69 6f 6e |bytecomp| version|
|000000f0| 20 32 2e 32 35 20 58 45 | 6d 61 63 73 3b 20 32 32 | 2.25 XE|macs; 22|
|00000100| 2d 4d 61 72 2d 39 36 2e | 0a 3b 3b 3b 20 6f 70 74 |-Mar-96.|.;;; opt|
|00000110| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|00000120| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|00000130| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|00000140| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000150| 6e 20 45 6d 61 63 73 20 | 31 39 2e 0a 0a 28 69 66 |n Emacs |19...(if|
|00000160| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000170| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 29 0a 09 20 |macs-ver|sion).. |
|00000180| 28 6f 72 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(or (and| (boundp|
|00000190| 20 27 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e | 'epoch:|:version|
|000001a0| 29 20 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e |) epoch:|:version|
|000001b0| 29 0a 09 20 20 20 20 20 | 28 73 74 72 69 6e 67 2d |).. |(string-|
|000001c0| 6c 65 73 73 70 20 65 6d | 61 63 73 2d 76 65 72 73 |lessp em|acs-vers|
|000001d0| 69 6f 6e 20 22 32 30 22 | 29 29 29 0a 20 20 20 20 |ion "20"|))). |
|000001e0| 28 65 72 72 6f 72 20 22 | 60 73 68 65 6c 6c 2e 65 |(error "|`shell.e|
|000001f0| 6c 27 20 77 61 73 20 63 | 6f 6d 70 69 6c 65 64 20 |l' was c|ompiled |
|00000200| 66 6f 72 20 45 6d 61 63 | 73 20 32 30 22 29 29 0a |for Emac|s 20")).|
|00000210| 0a 28 6f 72 20 28 62 6f | 75 6e 64 70 20 27 63 75 |.(or (bo|undp 'cu|
|00000220| 72 72 65 6e 74 2d 6c 6f | 61 64 2d 6c 69 73 74 29 |rrent-lo|ad-list)|
|00000230| 20 28 73 65 74 71 20 63 | 75 72 72 65 6e 74 2d 6c | (setq c|urrent-l|
|00000240| 6f 61 64 2d 6c 69 73 74 | 20 6e 69 6c 29 29 0a 0a |oad-list| nil))..|
|00000250| 0a 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 21 |.(byte-c|ode "..!|
|00000260| 88 c2 c3 c4 c5 c6 c7 c6 | c8 26 07 88 c2 c9 c4 ca |........|.&......|
|00000270| c6 c3 25 88 c2 cb c4 cc | c6 c3 25 87 22 20 5b 72 |..%.....|..%." [r|
|00000280| 65 71 75 69 72 65 20 63 | 6f 6d 69 6e 74 20 63 75 |equire c|omint cu|
|00000290| 73 74 6f 6d 2d 64 65 63 | 6c 61 72 65 2d 67 72 6f |stom-dec|lare-gro|
|000002a0| 75 70 20 73 68 65 6c 6c | 20 6e 69 6c 20 22 52 75 |up shell| nil "Ru|
|000002b0| 6e 6e 69 6e 67 20 73 68 | 65 6c 6c 20 66 72 6f 6d |nning sh|ell from|
|000002c0| 20 77 69 74 68 69 6e 20 | 45 6d 61 63 73 20 62 75 | within |Emacs bu|
|000002d0| 66 66 65 72 73 22 20 3a | 67 72 6f 75 70 20 70 72 |ffers" :|group pr|
|000002e0| 6f 63 65 73 73 65 73 20 | 75 6e 69 78 20 73 68 65 |ocesses |unix she|
|000002f0| 6c 6c 2d 64 69 72 65 63 | 74 6f 72 69 65 73 20 22 |ll-direc|tories "|
|00000300| 44 69 72 65 63 74 6f 72 | 79 20 73 75 70 70 6f 72 |Director|y suppor|
|00000310| 74 20 69 6e 20 73 68 65 | 6c 6c 20 6d 6f 64 65 22 |t in she|ll mode"|
|00000320| 20 73 68 65 6c 6c 2d 66 | 61 63 65 73 20 22 46 61 | shell-f|aces "Fa|
|00000330| 63 65 73 20 69 6e 20 73 | 68 65 6c 6c 20 62 75 66 |ces in s|hell buf|
|00000340| 66 65 72 73 22 5d 20 38 | 29 0a 23 40 34 32 35 20 |fers"] 8|).#@425 |
|00000350| 52 65 67 65 78 70 20 74 | 6f 20 6d 61 74 63 68 20 |Regexp t|o match |
|00000360| 70 72 6f 6d 70 74 73 20 | 69 6e 20 74 68 65 20 69 |prompts |in the i|
|00000370| 6e 66 65 72 69 6f 72 20 | 73 68 65 6c 6c 2e 0a 44 |nferior |shell..D|
|00000380| 65 66 61 75 6c 74 73 20 | 74 6f 20 22 5e 5b 5e 23 |efaults |to "^[^#|
|00000390| 24 25 3e 5c 6e 5d 2a 5b | 23 24 25 3e 5d 20 2a 22 |$%>\n]*[|#$%>] *"|
|000003a0| 2c 20 77 68 69 63 68 20 | 77 6f 72 6b 73 20 70 72 |, which |works pr|
|000003b0| 65 74 74 79 20 77 65 6c | 6c 2e 0a 54 68 69 73 20 |etty wel|l..This |
|000003c0| 76 61 72 69 61 62 6c 65 | 20 69 73 20 75 73 65 64 |variable| is used|
|000003d0| 20 74 6f 20 69 6e 69 74 | 69 61 6c 69 73 65 20 60 | to init|ialise `|
|000003e0| 63 6f 6d 69 6e 74 2d 70 | 72 6f 6d 70 74 2d 72 65 |comint-p|rompt-re|
|000003f0| 67 65 78 70 27 20 69 6e | 20 74 68 65 0a 73 68 65 |gexp' in| the.she|
|00000400| 6c 6c 20 62 75 66 66 65 | 72 2e 0a 0a 54 68 65 20 |ll buffe|r...The |
|00000410| 70 61 74 74 65 72 6e 20 | 73 68 6f 75 6c 64 20 70 |pattern |should p|
|00000420| 72 6f 62 61 62 6c 79 20 | 6e 6f 74 20 6d 61 74 63 |robably |not matc|
|00000430| 68 20 6d 6f 72 65 20 74 | 68 61 6e 20 6f 6e 65 20 |h more t|han one |
|00000440| 6c 69 6e 65 2e 20 20 49 | 66 20 69 74 20 64 6f 65 |line. I|f it doe|
|00000450| 73 2c 0a 73 68 65 6c 6c | 2d 6d 6f 64 65 20 6d 61 |s,.shell|-mode ma|
|00000460| 79 20 62 65 63 6f 6d 65 | 20 63 6f 6e 66 75 73 65 |y become| confuse|
|00000470| 64 20 74 72 79 69 6e 67 | 20 74 6f 20 64 69 73 74 |d trying| to dist|
|00000480| 69 6e 67 75 69 73 68 20 | 70 72 6f 6d 70 74 20 66 |inguish |prompt f|
|00000490| 72 6f 6d 20 69 6e 70 75 | 74 0a 6f 6e 20 6c 69 6e |rom inpu|t.on lin|
|000004a0| 65 73 20 77 68 69 63 68 | 20 64 6f 6e 27 74 20 73 |es which| don't s|
|000004b0| 74 61 72 74 20 77 69 74 | 68 20 61 20 70 72 6f 6d |tart wit|h a prom|
|000004c0| 70 74 2e 0a 0a 54 68 69 | 73 20 69 73 20 61 20 66 |pt...Thi|s is a f|
|000004d0| 69 6e 65 20 74 68 69 6e | 67 20 74 6f 20 73 65 74 |ine thin|g to set|
|000004e0| 20 69 6e 20 79 6f 75 72 | 20 60 2e 65 6d 61 63 73 | in your| `.emacs|
|000004f0| 27 20 66 69 6c 65 2e 1f | 0a 28 64 65 66 76 61 72 |' file..|.(defvar|
|00000500| 20 73 68 65 6c 6c 2d 70 | 72 6f 6d 70 74 2d 70 61 | shell-p|rompt-pa|
|00000510| 74 74 65 72 6e 20 28 70 | 75 72 65 63 6f 70 79 20 |ttern (p|urecopy |
|00000520| 22 5e 5b 5e 23 24 25 3e | 5c 6e 5d 2a 5b 23 24 25 |"^[^#$%>|\n]*[#$%|
|00000530| 3e 5d 20 2a 22 29 20 28 | 23 24 20 2e 20 38 34 38 |>] *") (|#$ . 848|
|00000540| 29 29 0a 28 63 75 73 74 | 6f 6d 2d 64 65 63 6c 61 |)).(cust|om-decla|
|00000550| 72 65 2d 76 61 72 69 61 | 62 6c 65 20 27 73 68 65 |re-varia|ble 'she|
|00000560| 6c 6c 2d 63 6f 6d 70 6c | 65 74 69 6f 6e 2d 66 69 |ll-compl|etion-fi|
|00000570| 67 6e 6f 72 65 20 27 6e | 69 6c 20 22 2a 4c 69 73 |gnore 'n|il "*Lis|
|00000580| 74 20 6f 66 20 73 75 66 | 66 69 78 65 73 20 74 6f |t of suf|fixes to|
|00000590| 20 62 65 20 64 69 73 72 | 65 67 61 72 64 65 64 20 | be disr|egarded |
|000005a0| 64 75 72 69 6e 67 20 66 | 69 6c 65 2f 63 6f 6d 6d |during f|ile/comm|
|000005b0| 61 6e 64 20 63 6f 6d 70 | 6c 65 74 69 6f 6e 2e 5c |and comp|letion.\|
|000005c0| 6e 54 68 69 73 20 76 61 | 72 69 61 62 6c 65 20 69 |nThis va|riable i|
|000005d0| 73 20 75 73 65 64 20 74 | 6f 20 69 6e 69 74 69 61 |s used t|o initia|
|000005e0| 6c 69 7a 65 20 60 63 6f | 6d 69 6e 74 2d 63 6f 6d |lize `co|mint-com|
|000005f0| 70 6c 65 74 69 6f 6e 2d | 66 69 67 6e 6f 72 65 27 |pletion-|fignore'|
|00000600| 20 69 6e 20 74 68 65 20 | 73 68 65 6c 6c 5c 6e 62 | in the |shell\nb|
|00000610| 75 66 66 65 72 2e 20 20 | 54 68 65 20 64 65 66 61 |uffer. |The defa|
|00000620| 75 6c 74 20 69 73 20 6e | 69 6c 2c 20 66 6f 72 20 |ult is n|il, for |
|00000630| 63 6f 6d 70 61 74 69 62 | 69 6c 69 74 79 20 77 69 |compatib|ility wi|
|00000640| 74 68 20 6d 6f 73 74 20 | 73 68 65 6c 6c 73 2e 5c |th most |shells.\|
|00000650| 6e 53 6f 6d 65 20 70 65 | 6f 70 6c 65 20 6c 69 6b |nSome pe|ople lik|
|00000660| 65 20 28 5c 22 7e 5c 22 | 20 5c 22 23 5c 22 20 5c |e (\"~\"| \"#\" \|
|00000670| 22 25 5c 22 29 2e 5c 6e | 5c 6e 54 68 69 73 20 69 |"%\").\n|\nThis i|
|00000680| 73 20 61 20 66 69 6e 65 | 20 74 68 69 6e 67 20 74 |s a fine| thing t|
|00000690| 6f 20 73 65 74 20 69 6e | 20 79 6f 75 72 20 60 2e |o set in| your `.|
|000006a0| 65 6d 61 63 73 27 20 66 | 69 6c 65 2e 22 20 3a 74 |emacs' f|ile." :t|
|000006b0| 79 70 65 20 27 28 72 65 | 70 65 61 74 20 28 73 74 |ype '(re|peat (st|
|000006c0| 72 69 6e 67 20 3a 74 61 | 67 20 22 53 75 66 66 69 |ring :ta|g "Suffi|
|000006d0| 78 22 29 29 20 3a 67 72 | 6f 75 70 20 27 73 68 65 |x")) :gr|oup 'she|
|000006e0| 6c 6c 29 0a 23 40 32 34 | 32 20 4c 69 73 74 20 6f |ll).#@24|2 List o|
|000006f0| 66 20 63 68 61 72 61 63 | 74 65 72 73 20 74 6f 20 |f charac|ters to |
|00000700| 72 65 63 6f 67 6e 69 73 | 65 20 61 73 20 73 65 70 |recognis|e as sep|
|00000710| 61 72 61 74 65 20 61 72 | 67 75 6d 65 6e 74 73 2e |arate ar|guments.|
|00000720| 0a 54 68 69 73 20 76 61 | 72 69 61 62 6c 65 20 69 |.This va|riable i|
|00000730| 73 20 75 73 65 64 20 74 | 6f 20 69 6e 69 74 69 61 |s used t|o initia|
|00000740| 6c 69 7a 65 20 60 63 6f | 6d 69 6e 74 2d 64 65 6c |lize `co|mint-del|
|00000750| 69 6d 69 74 65 72 2d 61 | 72 67 75 6d 65 6e 74 2d |imiter-a|rgument-|
|00000760| 6c 69 73 74 27 20 69 6e | 20 74 68 65 0a 73 68 65 |list' in| the.she|
|00000770| 6c 6c 20 62 75 66 66 65 | 72 2e 20 20 54 68 65 20 |ll buffe|r. The |
|00000780| 64 65 66 61 75 6c 74 20 | 69 73 20 28 3f 5c 7c 20 |default |is (?\| |
|00000790| 3f 26 20 3f 3c 20 3f 3e | 20 3f 5c 28 20 3f 5c 29 |?& ?< ?>| ?\( ?\)|
|000007a0| 20 3f 5c 3b 29 2e 0a 0a | 54 68 69 73 20 69 73 20 | ?\;)...|This is |
|000007b0| 61 20 66 69 6e 65 20 74 | 68 69 6e 67 20 74 6f 20 |a fine t|hing to |
|000007c0| 73 65 74 20 69 6e 20 79 | 6f 75 72 20 60 2e 65 6d |set in y|our `.em|
|000007d0| 61 63 73 27 20 66 69 6c | 65 2e 1f 0a 28 64 65 66 |acs' fil|e...(def|
|000007e0| 76 61 72 20 73 68 65 6c | 6c 2d 64 65 6c 69 6d 69 |var shel|l-delimi|
|000007f0| 74 65 72 2d 61 72 67 75 | 6d 65 6e 74 2d 6c 69 73 |ter-argu|ment-lis|
|00000800| 74 20 6e 69 6c 20 28 23 | 24 20 2e 20 31 37 37 30 |t nil (#|$ . 1770|
|00000810| 29 29 0a 23 40 32 37 37 | 20 4c 69 73 74 20 6f 66 |)).#@277| List of|
|00000820| 20 63 68 61 72 61 63 74 | 65 72 73 20 74 6f 20 71 | charact|ers to q|
|00000830| 75 6f 74 65 20 77 68 65 | 6e 20 69 6e 20 61 20 66 |uote whe|n in a f|
|00000840| 69 6c 65 20 6e 61 6d 65 | 2e 0a 54 68 69 73 20 76 |ile name|..This v|
|00000850| 61 72 69 61 62 6c 65 20 | 69 73 20 75 73 65 64 20 |ariable |is used |
|00000860| 74 6f 20 69 6e 69 74 69 | 61 6c 69 7a 65 20 60 63 |to initi|alize `c|
|00000870| 6f 6d 69 6e 74 2d 66 69 | 6c 65 2d 6e 61 6d 65 2d |omint-fi|le-name-|
|00000880| 71 75 6f 74 65 2d 6c 69 | 73 74 27 20 69 6e 20 74 |quote-li|st' in t|
|00000890| 68 65 0a 73 68 65 6c 6c | 20 62 75 66 66 65 72 2e |he.shell| buffer.|
|000008a0| 20 20 54 68 65 20 64 65 | 66 61 75 6c 74 20 69 73 | The de|fault is|
|000008b0| 20 28 3f 20 20 3f 2a 20 | 3f 21 20 3f 22 20 3f 27 | (? ?* |?! ?" ?'|
|000008c0| 20 3f 60 29 20 70 6c 75 | 73 20 63 68 61 72 61 63 | ?`) plu|s charac|
|000008d0| 74 65 72 73 0a 69 6e 20 | 60 73 68 65 6c 6c 2d 64 |ters.in |`shell-d|
|000008e0| 65 6c 69 6d 69 74 65 72 | 2d 61 72 67 75 6d 65 6e |elimiter|-argumen|
|000008f0| 74 2d 6c 69 73 74 27 2e | 0a 0a 54 68 69 73 20 69 |t-list'.|..This i|
|00000900| 73 20 61 20 66 69 6e 65 | 20 74 68 69 6e 67 20 74 |s a fine| thing t|
|00000910| 6f 20 73 65 74 20 69 6e | 20 79 6f 75 72 20 60 2e |o set in| your `.|
|00000920| 65 6d 61 63 73 27 20 66 | 69 6c 65 2e 1f 0a 28 64 |emacs' f|ile...(d|
|00000930| 65 66 76 61 72 20 73 68 | 65 6c 6c 2d 66 69 6c 65 |efvar sh|ell-file|
|00000940| 2d 6e 61 6d 65 2d 71 75 | 6f 74 65 2d 6c 69 73 74 |-name-qu|ote-list|
|00000950| 20 28 61 70 70 65 6e 64 | 20 73 68 65 6c 6c 2d 64 | (append| shell-d|
|00000960| 65 6c 69 6d 69 74 65 72 | 2d 61 72 67 75 6d 65 6e |elimiter|-argumen|
|00000970| 74 2d 6c 69 73 74 20 27 | 28 3f 5c 20 20 3f 5c 2a |t-list '|(?\ ?\*|
|00000980| 20 3f 5c 21 20 3f 5c 22 | 20 3f 5c 27 20 3f 5c 60 | ?\! ?\"| ?\' ?\`|
|00000990| 29 29 20 28 23 24 20 2e | 20 32 30 37 33 29 29 0a |)) (#$ .| 2073)).|
|000009a0| 23 40 31 39 34 20 4c 69 | 73 74 20 6f 66 20 66 75 |#@194 Li|st of fu|
|000009b0| 6e 63 74 69 6f 6e 73 20 | 63 61 6c 6c 65 64 20 74 |nctions |called t|
|000009c0| 6f 20 70 65 72 66 6f 72 | 6d 20 63 6f 6d 70 6c 65 |o perfor|m comple|
|000009d0| 74 69 6f 6e 2e 0a 54 68 | 69 73 20 76 61 72 69 61 |tion..Th|is varia|
|000009e0| 62 6c 65 20 69 73 20 75 | 73 65 64 20 74 6f 20 69 |ble is u|sed to i|
|000009f0| 6e 69 74 69 61 6c 69 73 | 65 20 60 63 6f 6d 69 6e |nitialis|e `comin|
|00000a00| 74 2d 64 79 6e 61 6d 69 | 63 2d 63 6f 6d 70 6c 65 |t-dynami|c-comple|
|00000a10| 74 65 2d 66 75 6e 63 74 | 69 6f 6e 73 27 20 69 6e |te-funct|ions' in|
|00000a20| 20 74 68 65 0a 73 68 65 | 6c 6c 20 62 75 66 66 65 | the.she|ll buffe|
|00000a30| 72 2e 0a 0a 54 68 69 73 | 20 69 73 20 61 20 66 69 |r...This| is a fi|
|00000a40| 6e 65 20 74 68 69 6e 67 | 20 74 6f 20 73 65 74 20 |ne thing| to set |
|00000a50| 69 6e 20 79 6f 75 72 20 | 60 2e 65 6d 61 63 73 27 |in your |`.emacs'|
|00000a60| 20 66 69 6c 65 2e 1f 0a | 28 64 65 66 76 61 72 20 | file...|(defvar |
|00000a70| 73 68 65 6c 6c 2d 64 79 | 6e 61 6d 69 63 2d 63 6f |shell-dy|namic-co|
|00000a80| 6d 70 6c 65 74 65 2d 66 | 75 6e 63 74 69 6f 6e 73 |mplete-f|unctions|
|00000a90| 20 27 28 63 6f 6d 69 6e | 74 2d 72 65 70 6c 61 63 | '(comin|t-replac|
|00000aa0| 65 2d 62 79 2d 65 78 70 | 61 6e 64 65 64 2d 68 69 |e-by-exp|anded-hi|
|00000ab0| 73 74 6f 72 79 20 73 68 | 65 6c 6c 2d 64 79 6e 61 |story sh|ell-dyna|
|00000ac0| 6d 69 63 2d 63 6f 6d 70 | 6c 65 74 65 2d 65 6e 76 |mic-comp|lete-env|
|00000ad0| 69 72 6f 6e 6d 65 6e 74 | 2d 76 61 72 69 61 62 6c |ironment|-variabl|
|00000ae0| 65 20 73 68 65 6c 6c 2d | 64 79 6e 61 6d 69 63 2d |e shell-|dynamic-|
|00000af0| 63 6f 6d 70 6c 65 74 65 | 2d 63 6f 6d 6d 61 6e 64 |complete|-command|
|00000b00| 20 73 68 65 6c 6c 2d 72 | 65 70 6c 61 63 65 2d 62 | shell-r|eplace-b|
|00000b10| 79 2d 65 78 70 61 6e 64 | 65 64 2d 64 69 72 65 63 |y-expand|ed-direc|
|00000b20| 74 6f 72 79 20 63 6f 6d | 69 6e 74 2d 64 79 6e 61 |tory com|int-dyna|
|00000b30| 6d 69 63 2d 63 6f 6d 70 | 6c 65 74 65 2d 66 69 6c |mic-comp|lete-fil|
|00000b40| 65 6e 61 6d 65 29 20 28 | 23 24 20 2e 20 32 34 37 |ename) (|#$ . 247|
|00000b50| 30 29 29 0a 28 63 75 73 | 74 6f 6d 2d 64 65 63 6c |0)).(cus|tom-decl|
|00000b60| 61 72 65 2d 76 61 72 69 | 61 62 6c 65 20 27 73 68 |are-vari|able 'sh|
|00000b70| 65 6c 6c 2d 63 6f 6d 6d | 61 6e 64 2d 72 65 67 65 |ell-comm|and-rege|
|00000b80| 78 70 20 27 22 5b 5e 3b | 26 7c 5c 6e 5d 2b 22 20 |xp '"[^;|&|\n]+" |
|00000b90| 22 2a 52 65 67 65 78 70 | 20 74 6f 20 6d 61 74 63 |"*Regexp| to matc|
|00000ba0| 68 20 61 20 73 69 6e 67 | 6c 65 20 63 6f 6d 6d 61 |h a sing|le comma|
|00000bb0| 6e 64 20 77 69 74 68 69 | 6e 20 61 20 70 69 70 65 |nd withi|n a pipe|
|00000bc0| 6c 69 6e 65 2e 5c 6e 54 | 68 69 73 20 69 73 20 75 |line.\nT|his is u|
|00000bd0| 73 65 64 20 66 6f 72 20 | 64 69 72 65 63 74 6f 72 |sed for |director|
|00000be0| 79 20 74 72 61 63 6b 69 | 6e 67 20 61 6e 64 20 64 |y tracki|ng and d|
|00000bf0| 6f 65 73 20 6e 6f 74 20 | 64 6f 20 61 20 70 65 72 |oes not |do a per|
|00000c00| 66 65 63 74 20 6a 6f 62 | 2e 22 20 3a 74 79 70 65 |fect job|." :type|
|00000c10| 20 27 72 65 67 65 78 70 | 20 3a 67 72 6f 75 70 20 | 'regexp| :group |
|00000c20| 27 73 68 65 6c 6c 29 0a | 28 63 75 73 74 6f 6d 2d |'shell).|(custom-|
|00000c30| 64 65 63 6c 61 72 65 2d | 76 61 72 69 61 62 6c 65 |declare-|variable|
|00000c40| 20 27 73 68 65 6c 6c 2d | 63 6f 6d 70 6c 65 74 69 | 'shell-|completi|
|00000c50| 6f 6e 2d 65 78 65 63 6f | 6e 6c 79 20 27 74 20 22 |on-execo|nly 't "|
|00000c60| 2a 49 66 20 6e 6f 6e 2d | 6e 69 6c 2c 20 75 73 65 |*If non-|nil, use|
|00000c70| 20 65 78 65 63 75 74 61 | 62 6c 65 20 66 69 6c 65 | executa|ble file|
|00000c80| 73 20 6f 6e 6c 79 20 66 | 6f 72 20 63 6f 6d 70 6c |s only f|or compl|
|00000c90| 65 74 69 6f 6e 20 63 61 | 6e 64 69 64 61 74 65 73 |etion ca|ndidates|
|00000ca0| 2e 5c 6e 54 68 69 73 20 | 6d 69 72 72 6f 72 73 20 |.\nThis |mirrors |
|00000cb0| 74 68 65 20 6f 70 74 69 | 6f 6e 61 6c 20 62 65 68 |the opti|onal beh|
|00000cc0| 61 76 69 6f 72 20 6f 66 | 20 74 63 73 68 2e 5c 6e |avior of| tcsh.\n|
|00000cd0| 5c 6e 44 65 74 65 63 74 | 69 6e 67 20 65 78 65 63 |\nDetect|ing exec|
|00000ce0| 75 74 61 62 69 6c 69 74 | 79 20 6f 66 20 66 69 6c |utabilit|y of fil|
|00000cf0| 65 73 20 6d 61 79 20 73 | 6c 6f 77 20 63 6f 6d 6d |es may s|low comm|
|00000d00| 61 6e 64 20 63 6f 6d 70 | 6c 65 74 69 6f 6e 20 63 |and comp|letion c|
|00000d10| 6f 6e 73 69 64 65 72 61 | 62 6c 79 2e 22 20 3a 74 |onsidera|bly." :t|
|00000d20| 79 70 65 20 27 62 6f 6f | 6c 65 61 6e 20 3a 67 72 |ype 'boo|lean :gr|
|00000d30| 6f 75 70 20 27 73 68 65 | 6c 6c 29 0a 28 63 75 73 |oup 'she|ll).(cus|
|00000d40| 74 6f 6d 2d 64 65 63 6c | 61 72 65 2d 76 61 72 69 |tom-decl|are-vari|
|00000d50| 61 62 6c 65 20 27 73 68 | 65 6c 6c 2d 6d 75 6c 74 |able 'sh|ell-mult|
|00000d60| 69 70 6c 65 2d 73 68 65 | 6c 6c 73 20 27 6e 69 6c |iple-she|lls 'nil|
|00000d70| 20 22 2a 49 66 20 6e 6f | 6e 2d 6e 69 6c 2c 20 65 | "*If no|n-nil, e|
|00000d80| 61 63 68 20 74 69 6d 65 | 20 73 68 65 6c 6c 20 6d |ach time| shell m|
|00000d90| 6f 64 65 20 69 73 20 69 | 6e 76 6f 6b 65 64 2c 20 |ode is i|nvoked, |
|00000da0| 61 20 6e 65 77 20 73 68 | 65 6c 6c 20 69 73 20 6d |a new sh|ell is m|
|00000db0| 61 64 65 22 20 3a 74 79 | 70 65 20 27 62 6f 6f 6c |ade" :ty|pe 'bool|
|00000dc0| 65 61 6e 20 3a 67 72 6f | 75 70 20 27 73 68 65 6c |ean :gro|up 'shel|
|00000dd0| 6c 29 0a 28 63 75 73 74 | 6f 6d 2d 64 65 63 6c 61 |l).(cust|om-decla|
|00000de0| 72 65 2d 76 61 72 69 61 | 62 6c 65 20 27 73 68 65 |re-varia|ble 'she|
|00000df0| 6c 6c 2d 70 6f 70 64 2d | 72 65 67 65 78 70 20 27 |ll-popd-|regexp '|
|00000e00| 22 70 6f 70 64 22 20 22 | 2a 52 65 67 65 78 70 20 |"popd" "|*Regexp |
|00000e10| 74 6f 20 6d 61 74 63 68 | 20 73 75 62 73 68 65 6c |to match| subshel|
|00000e20| 6c 20 63 6f 6d 6d 61 6e | 64 73 20 65 71 75 69 76 |l comman|ds equiv|
|00000e30| 61 6c 65 6e 74 20 74 6f | 20 70 6f 70 64 2e 22 20 |alent to| popd." |
|00000e40| 3a 74 79 70 65 20 27 72 | 65 67 65 78 70 20 3a 67 |:type 'r|egexp :g|
|00000e50| 72 6f 75 70 20 27 73 68 | 65 6c 6c 2d 64 69 72 65 |roup 'sh|ell-dire|
|00000e60| 63 74 6f 72 69 65 73 29 | 0a 28 63 75 73 74 6f 6d |ctories)|.(custom|
|00000e70| 2d 64 65 63 6c 61 72 65 | 2d 76 61 72 69 61 62 6c |-declare|-variabl|
|00000e80| 65 20 27 73 68 65 6c 6c | 2d 70 75 73 68 64 2d 72 |e 'shell|-pushd-r|
|00000e90| 65 67 65 78 70 20 27 22 | 70 75 73 68 64 22 20 22 |egexp '"|pushd" "|
|00000ea0| 2a 52 65 67 65 78 70 20 | 74 6f 20 6d 61 74 63 68 |*Regexp |to match|
|00000eb0| 20 73 75 62 73 68 65 6c | 6c 20 63 6f 6d 6d 61 6e | subshel|l comman|
|00000ec0| 64 73 20 65 71 75 69 76 | 61 6c 65 6e 74 20 74 6f |ds equiv|alent to|
|00000ed0| 20 70 75 73 68 64 2e 22 | 20 3a 74 79 70 65 20 27 | pushd."| :type '|
|00000ee0| 72 65 67 65 78 70 20 3a | 67 72 6f 75 70 20 27 73 |regexp :|group 's|
|00000ef0| 68 65 6c 6c 2d 64 69 72 | 65 63 74 6f 72 69 65 73 |hell-dir|ectories|
|00000f00| 29 0a 28 63 75 73 74 6f | 6d 2d 64 65 63 6c 61 72 |).(custo|m-declar|
|00000f10| 65 2d 76 61 72 69 61 62 | 6c 65 20 27 73 68 65 6c |e-variab|le 'shel|
|00000f20| 6c 2d 70 75 73 68 64 2d | 74 6f 68 6f 6d 65 20 27 |l-pushd-|tohome '|
|00000f30| 6e 69 6c 20 22 2a 49 66 | 20 6e 6f 6e 2d 6e 69 6c |nil "*If| non-nil|
|00000f40| 2c 20 6d 61 6b 65 20 70 | 75 73 68 64 20 77 69 74 |, make p|ushd wit|
|00000f50| 68 20 6e 6f 20 61 72 67 | 20 62 65 68 61 76 65 20 |h no arg| behave |
|00000f60| 61 73 20 5c 22 70 75 73 | 68 64 20 7e 5c 22 20 28 |as \"pus|hd ~\" (|
|00000f70| 6c 69 6b 65 20 63 64 29 | 2e 5c 6e 54 68 69 73 20 |like cd)|.\nThis |
|00000f80| 6d 69 72 72 6f 72 73 20 | 74 68 65 20 6f 70 74 69 |mirrors |the opti|
|00000f90| 6f 6e 61 6c 20 62 65 68 | 61 76 69 6f 72 20 6f 66 |onal beh|avior of|
|00000fa0| 20 74 63 73 68 2e 22 20 | 3a 74 79 70 65 20 27 62 | tcsh." |:type 'b|
|00000fb0| 6f 6f 6c 65 61 6e 20 3a | 67 72 6f 75 70 20 27 73 |oolean :|group 's|
|00000fc0| 68 65 6c 6c 2d 64 69 72 | 65 63 74 6f 72 69 65 73 |hell-dir|ectories|
|00000fd0| 29 0a 28 63 75 73 74 6f | 6d 2d 64 65 63 6c 61 72 |).(custo|m-declar|
|00000fe0| 65 2d 76 61 72 69 61 62 | 6c 65 20 27 73 68 65 6c |e-variab|le 'shel|
|00000ff0| 6c 2d 70 75 73 68 64 2d | 64 65 78 74 72 61 63 74 |l-pushd-|dextract|
|00001000| 20 27 6e 69 6c 20 22 2a | 49 66 20 6e 6f 6e 2d 6e | 'nil "*|If non-n|
|00001010| 69 6c 2c 20 6d 61 6b 65 | 20 5c 22 70 75 73 68 64 |il, make| \"pushd|
|00001020| 20 2b 6e 5c 22 20 70 6f | 70 20 74 68 65 20 6e 74 | +n\" po|p the nt|
|00001030| 68 20 64 69 72 20 74 6f | 20 74 68 65 20 73 74 61 |h dir to| the sta|
|00001040| 63 6b 20 74 6f 70 2e 5c | 6e 54 68 69 73 20 6d 69 |ck top.\|nThis mi|
|00001050| 72 72 6f 72 73 20 74 68 | 65 20 6f 70 74 69 6f 6e |rrors th|e option|
|00001060| 61 6c 20 62 65 68 61 76 | 69 6f 72 20 6f 66 20 74 |al behav|ior of t|
|00001070| 63 73 68 2e 22 20 3a 74 | 79 70 65 20 27 62 6f 6f |csh." :t|ype 'boo|
|00001080| 6c 65 61 6e 20 3a 67 72 | 6f 75 70 20 27 73 68 65 |lean :gr|oup 'she|
|00001090| 6c 6c 2d 64 69 72 65 63 | 74 6f 72 69 65 73 29 0a |ll-direc|tories).|
|000010a0| 28 63 75 73 74 6f 6d 2d | 64 65 63 6c 61 72 65 2d |(custom-|declare-|
|000010b0| 76 61 72 69 61 62 6c 65 | 20 27 73 68 65 6c 6c 2d |variable| 'shell-|
|000010c0| 70 75 73 68 64 2d 64 75 | 6e 69 71 75 65 20 27 6e |pushd-du|nique 'n|
|000010d0| 69 6c 20 22 2a 49 66 20 | 6e 6f 6e 2d 6e 69 6c 2c |il "*If |non-nil,|
|000010e0| 20 6d 61 6b 65 20 70 75 | 73 68 64 20 6f 6e 6c 79 | make pu|shd only|
|000010f0| 20 61 64 64 20 75 6e 69 | 71 75 65 20 64 69 72 65 | add uni|que dire|
|00001100| 63 74 6f 72 69 65 73 20 | 74 6f 20 74 68 65 20 73 |ctories |to the s|
|00001110| 74 61 63 6b 2e 5c 6e 54 | 68 69 73 20 6d 69 72 72 |tack.\nT|his mirr|
|00001120| 6f 72 73 20 74 68 65 20 | 6f 70 74 69 6f 6e 61 6c |ors the |optional|
|00001130| 20 62 65 68 61 76 69 6f | 72 20 6f 66 20 74 63 73 | behavio|r of tcs|
|00001140| 68 2e 22 20 3a 74 79 70 | 65 20 27 62 6f 6f 6c 65 |h." :typ|e 'boole|
|00001150| 61 6e 20 3a 67 72 6f 75 | 70 20 27 73 68 65 6c 6c |an :grou|p 'shell|
|00001160| 2d 64 69 72 65 63 74 6f | 72 69 65 73 29 0a 28 63 |-directo|ries).(c|
|00001170| 75 73 74 6f 6d 2d 64 65 | 63 6c 61 72 65 2d 76 61 |ustom-de|clare-va|
|00001180| 72 69 61 62 6c 65 20 27 | 73 68 65 6c 6c 2d 63 64 |riable '|shell-cd|
|00001190| 2d 72 65 67 65 78 70 20 | 27 22 63 64 22 20 22 2a |-regexp |'"cd" "*|
|000011a0| 52 65 67 65 78 70 20 74 | 6f 20 6d 61 74 63 68 20 |Regexp t|o match |
|000011b0| 73 75 62 73 68 65 6c 6c | 20 63 6f 6d 6d 61 6e 64 |subshell| command|
|000011c0| 73 20 65 71 75 69 76 61 | 6c 65 6e 74 20 74 6f 20 |s equiva|lent to |
|000011d0| 63 64 2e 22 20 3a 74 79 | 70 65 20 27 72 65 67 65 |cd." :ty|pe 'rege|
|000011e0| 78 70 20 3a 67 72 6f 75 | 70 20 27 73 68 65 6c 6c |xp :grou|p 'shell|
|000011f0| 2d 64 69 72 65 63 74 6f | 72 69 65 73 29 0a 28 63 |-directo|ries).(c|
|00001200| 75 73 74 6f 6d 2d 64 65 | 63 6c 61 72 65 2d 76 61 |ustom-de|clare-va|
|00001210| 72 69 61 62 6c 65 20 27 | 65 78 70 6c 69 63 69 74 |riable '|explicit|
|00001220| 2d 73 68 65 6c 6c 2d 66 | 69 6c 65 2d 6e 61 6d 65 |-shell-f|ile-name|
|00001230| 20 27 6e 69 6c 20 22 2a | 49 66 20 6e 6f 6e 2d 6e | 'nil "*|If non-n|
|00001240| 69 6c 2c 20 69 73 20 66 | 69 6c 65 20 6e 61 6d 65 |il, is f|ile name|
|00001250| 20 74 6f 20 75 73 65 20 | 66 6f 72 20 65 78 70 6c | to use |for expl|
|00001260| 69 63 69 74 6c 79 20 72 | 65 71 75 65 73 74 65 64 |icitly r|equested|
|00001270| 20 69 6e 66 65 72 69 6f | 72 20 73 68 65 6c 6c 2e | inferio|r shell.|
|00001280| 22 20 3a 74 79 70 65 20 | 27 28 63 68 6f 69 63 65 |" :type |'(choice|
|00001290| 20 28 63 6f 6e 73 74 20 | 3a 74 61 67 20 22 4e 6f | (const |:tag "No|
|000012a0| 6e 65 22 20 6e 69 6c 29 | 20 66 69 6c 65 29 20 3a |ne" nil)| file) :|
|000012b0| 67 72 6f 75 70 20 27 73 | 68 65 6c 6c 29 0a 28 63 |group 's|hell).(c|
|000012c0| 75 73 74 6f 6d 2d 64 65 | 63 6c 61 72 65 2d 76 61 |ustom-de|clare-va|
|000012d0| 72 69 61 62 6c 65 20 27 | 65 78 70 6c 69 63 69 74 |riable '|explicit|
|000012e0| 2d 63 73 68 2d 61 72 67 | 73 20 27 28 69 66 20 28 |-csh-arg|s '(if (|
|000012f0| 65 71 20 73 79 73 74 65 | 6d 2d 74 79 70 65 20 27 |eq syste|m-type '|
|00001300| 68 70 75 78 29 20 27 28 | 22 2d 69 22 20 22 2d 54 |hpux) '(|"-i" "-T|
|00001310| 22 29 20 27 28 22 2d 69 | 22 29 29 20 22 2a 41 72 |") '("-i|")) "*Ar|
|00001320| 67 73 20 70 61 73 73 65 | 64 20 74 6f 20 69 6e 66 |gs passe|d to inf|
|00001330| 65 72 69 6f 72 20 73 68 | 65 6c 6c 20 62 79 20 4d |erior sh|ell by M|
|00001340| 2d 78 20 73 68 65 6c 6c | 2c 20 69 66 20 74 68 65 |-x shell|, if the|
|00001350| 20 73 68 65 6c 6c 20 69 | 73 20 63 73 68 2e 5c 6e | shell i|s csh.\n|
|00001360| 56 61 6c 75 65 20 69 73 | 20 61 20 6c 69 73 74 20 |Value is| a list |
|00001370| 6f 66 20 73 74 72 69 6e | 67 73 2c 20 77 68 69 63 |of strin|gs, whic|
|00001380| 68 20 6d 61 79 20 62 65 | 20 6e 69 6c 2e 22 20 3a |h may be| nil." :|
|00001390| 74 79 70 65 20 27 28 72 | 65 70 65 61 74 20 28 73 |type '(r|epeat (s|
|000013a0| 74 72 69 6e 67 20 3a 74 | 61 67 20 22 41 72 67 75 |tring :t|ag "Argu|
|000013b0| 6d 65 6e 74 22 29 29 20 | 3a 67 72 6f 75 70 20 27 |ment")) |:group '|
|000013c0| 73 68 65 6c 6c 29 0a 28 | 63 75 73 74 6f 6d 2d 64 |shell).(|custom-d|
|000013d0| 65 63 6c 61 72 65 2d 76 | 61 72 69 61 62 6c 65 20 |eclare-v|ariable |
|000013e0| 27 73 68 65 6c 6c 2d 69 | 6e 70 75 74 2d 61 75 74 |'shell-i|nput-aut|
|000013f0| 6f 65 78 70 61 6e 64 20 | 27 27 68 69 73 74 6f 72 |oexpand |''histor|
|00001400| 79 20 22 2a 49 66 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |y "*If n|on-nil, |
|00001410| 65 78 70 61 6e 64 20 69 | 6e 70 75 74 20 63 6f 6d |expand i|nput com|
|00001420| 6d 61 6e 64 20 68 69 73 | 74 6f 72 79 20 72 65 66 |mand his|tory ref|
|00001430| 65 72 65 6e 63 65 73 20 | 6f 6e 20 63 6f 6d 70 6c |erences |on compl|
|00001440| 65 74 69 6f 6e 2e 5c 6e | 54 68 69 73 20 6d 69 72 |etion.\n|This mir|
|00001450| 72 6f 72 73 20 74 68 65 | 20 6f 70 74 69 6f 6e 61 |rors the| optiona|
|00001460| 6c 20 62 65 68 61 76 69 | 6f 72 20 6f 66 20 74 63 |l behavi|or of tc|
|00001470| 73 68 20 28 69 74 73 20 | 61 75 74 6f 65 78 70 61 |sh (its |autoexpa|
|00001480| 6e 64 20 61 6e 64 20 68 | 69 73 74 6c 69 74 29 2e |nd and h|istlit).|
|00001490| 5c 6e 5c 6e 49 66 20 74 | 68 65 20 76 61 6c 75 65 |\n\nIf t|he value|
|000014a0| 20 69 73 20 60 69 6e 70 | 75 74 27 2c 20 74 68 65 | is `inp|ut', the|
|000014b0| 6e 20 74 68 65 20 65 78 | 70 61 6e 73 69 6f 6e 20 |n the ex|pansion |
|000014c0| 69 73 20 73 65 65 6e 20 | 6f 6e 20 69 6e 70 75 74 |is seen |on input|
|000014d0| 2e 5c 6e 49 66 20 74 68 | 65 20 76 61 6c 75 65 20 |.\nIf th|e value |
|000014e0| 69 73 20 60 68 69 73 74 | 6f 72 79 27 2c 20 74 68 |is `hist|ory', th|
|000014f0| 65 6e 20 74 68 65 20 65 | 78 70 61 6e 73 69 6f 6e |en the e|xpansion|
|00001500| 20 69 73 20 6f 6e 6c 79 | 20 77 68 65 6e 20 69 6e | is only| when in|
|00001510| 73 65 72 74 69 6e 67 5c | 6e 69 6e 74 6f 20 74 68 |serting\|ninto th|
|00001520| 65 20 62 75 66 66 65 72 | 27 73 20 69 6e 70 75 74 |e buffer|'s input|
|00001530| 20 72 69 6e 67 2e 20 20 | 53 65 65 20 61 6c 73 6f | ring. |See also|
|00001540| 20 60 63 6f 6d 69 6e 74 | 2d 6d 61 67 69 63 2d 73 | `comint|-magic-s|
|00001550| 70 61 63 65 27 20 61 6e | 64 5c 6e 60 63 6f 6d 69 |pace' an|d\n`comi|
|00001560| 6e 74 2d 64 79 6e 61 6d | 69 63 2d 63 6f 6d 70 6c |nt-dynam|ic-compl|
|00001570| 65 74 65 27 2e 5c 6e 5c | 6e 54 68 69 73 20 76 61 |ete'.\n\|nThis va|
|00001580| 72 69 61 62 6c 65 20 73 | 75 70 70 6c 69 65 73 20 |riable s|upplies |
|00001590| 61 20 64 65 66 61 75 6c | 74 20 66 6f 72 20 60 63 |a defaul|t for `c|
|000015a0| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 61 75 74 6f |omint-in|put-auto|
|000015b0| 65 78 70 61 6e 64 27 2c | 5c 6e 66 6f 72 20 53 68 |expand',|\nfor Sh|
|000015c0| 65 6c 6c 20 6d 6f 64 65 | 20 6f 6e 6c 79 2e 22 20 |ell mode| only." |
|000015d0| 3a 74 79 70 65 20 27 28 | 63 68 6f 69 63 65 20 28 |:type '(|choice (|
|000015e0| 63 6f 6e 73 74 20 6e 69 | 6c 29 20 28 63 6f 6e 73 |const ni|l) (cons|
|000015f0| 74 20 69 6e 70 75 74 29 | 20 28 63 6f 6e 73 74 20 |t input)| (const |
|00001600| 68 69 73 74 6f 72 79 29 | 29 20 3a 74 79 70 65 20 |history)|) :type |
|00001610| 27 73 68 65 6c 6c 29 0a | 23 40 31 31 39 20 4c 69 |'shell).|#@119 Li|
|00001620| 73 74 20 6f 66 20 64 69 | 72 65 63 74 6f 72 69 65 |st of di|rectorie|
|00001630| 73 20 73 61 76 65 64 20 | 62 79 20 70 75 73 68 64 |s saved |by pushd|
|00001640| 20 69 6e 20 74 68 69 73 | 20 62 75 66 66 65 72 27 | in this| buffer'|
|00001650| 73 20 73 68 65 6c 6c 2e | 0a 54 68 75 73 2c 20 74 |s shell.|.Thus, t|
|00001660| 68 69 73 20 64 6f 65 73 | 20 6e 6f 74 20 69 6e 63 |his does| not inc|
|00001670| 6c 75 64 65 20 74 68 65 | 20 73 68 65 6c 6c 27 73 |lude the| shell's|
|00001680| 20 63 75 72 72 65 6e 74 | 20 64 69 72 65 63 74 6f | current| directo|
|00001690| 72 79 2e 1f 0a 28 64 65 | 66 76 61 72 20 73 68 65 |ry...(de|fvar she|
|000016a0| 6c 6c 2d 64 69 72 73 74 | 61 63 6b 20 6e 69 6c 20 |ll-dirst|ack nil |
|000016b0| 28 23 24 20 2e 20 35 36 | 36 32 29 29 0a 23 40 36 |(#$ . 56|62)).#@6|
|000016c0| 34 20 4e 6f 6e 2d 6e 69 | 6c 20 69 6e 20 61 20 73 |4 Non-ni|l in a s|
|000016d0| 68 65 6c 6c 20 62 75 66 | 66 65 72 20 6d 65 61 6e |hell buf|fer mean|
|000016e0| 73 20 64 69 72 65 63 74 | 6f 72 79 20 74 72 61 63 |s direct|ory trac|
|000016f0| 6b 69 6e 67 20 69 73 20 | 65 6e 61 62 6c 65 64 2e |king is |enabled.|
|00001700| 1f 0a 28 64 65 66 76 61 | 72 20 73 68 65 6c 6c 2d |..(defva|r shell-|
|00001710| 64 69 72 74 72 61 63 6b | 70 20 74 20 28 23 24 20 |dirtrack|p t (#$ |
|00001720| 2e 20 35 38 32 36 29 29 | 0a 23 40 35 34 20 4b 65 |. 5826))|.#@54 Ke|
|00001730| 65 70 20 74 72 61 63 6b | 20 6f 66 20 6c 61 73 74 |ep track| of last|
|00001740| 20 64 69 72 65 63 74 6f | 72 79 20 66 6f 72 20 6b | directo|ry for k|
|00001750| 73 68 20 60 63 64 20 2d | 27 20 63 6f 6d 6d 61 6e |sh `cd -|' comman|
|00001760| 64 2e 1f 0a 28 64 65 66 | 76 61 72 20 73 68 65 6c |d...(def|var shel|
|00001770| 6c 2d 6c 61 73 74 2d 64 | 69 72 20 6e 69 6c 20 28 |l-last-d|ir nil (|
|00001780| 23 24 20 2e 20 35 39 33 | 34 29 29 0a 23 40 35 37 |#$ . 593|4)).#@57|
|00001790| 20 43 6f 6d 6d 61 6e 64 | 20 75 73 65 64 20 62 79 | Command| used by|
|000017a0| 20 60 73 68 65 6c 6c 2d | 72 65 73 79 6e 63 2d 64 | `shell-|resync-d|
|000017b0| 69 72 73 27 20 74 6f 20 | 71 75 65 72 79 20 74 68 |irs' to |query th|
|000017c0| 65 20 73 68 65 6c 6c 2e | 1f 0a 28 64 65 66 76 61 |e shell.|..(defva|
|000017d0| 72 20 73 68 65 6c 6c 2d | 64 69 72 73 74 61 63 6b |r shell-|dirstack|
|000017e0| 2d 71 75 65 72 79 20 6e | 69 6c 20 28 23 24 20 2e |-query n|il (#$ .|
|000017f0| 20 36 30 33 33 29 29 0a | 28 62 79 74 65 2d 63 6f | 6033)).|(byte-co|
|00001800| 64 65 20 22 c0 c1 21 ac | 82 c2 11 c1 0b 42 13 09 |de "..!.|.....B..|
|00001810| ac b0 c4 20 1d c6 0d 0e | 07 43 5c 22 88 c8 0d c1 |... ....|.C\"....|
|00001820| 5c 22 88 c9 0d ca cb 23 | 88 c9 0d cc cd 23 88 c9 |\".....#|.....#..|
|00001830| 0d ce cf 23 88 c9 0d d0 | d1 23 88 c9 0d d2 d3 23 |...#....|.#.....#|
|00001840| 88 0d 11 29 c2 87 22 20 | 5b 62 6f 75 6e 64 70 20 |...).." |[boundp |
|00001850| 73 68 65 6c 6c 2d 6d 6f | 64 65 2d 6d 61 70 20 6e |shell-mo|de-map n|
|00001860| 69 6c 20 63 75 72 72 65 | 6e 74 2d 6c 6f 61 64 2d |il curre|nt-load-|
|00001870| 6c 69 73 74 20 6d 61 6b | 65 2d 6b 65 79 6d 61 70 |list mak|e-keymap|
|00001880| 20 6d 61 70 20 73 65 74 | 2d 6b 65 79 6d 61 70 2d | map set|-keymap-|
|00001890| 70 61 72 65 6e 74 73 20 | 63 6f 6d 69 6e 74 2d 6d |parents |comint-m|
|000018a0| 6f 64 65 2d 6d 61 70 20 | 73 65 74 2d 6b 65 79 6d |ode-map |set-keym|
|000018b0| 61 70 2d 6e 61 6d 65 20 | 64 65 66 69 6e 65 2d 6b |ap-name |define-k|
|000018c0| 65 79 20 22 03 06 22 20 | 73 68 65 6c 6c 2d 66 6f |ey ".." |shell-fo|
|000018d0| 72 77 61 72 64 2d 63 6f | 6d 6d 61 6e 64 20 22 03 |rward-co|mmand ".|
|000018e0| 02 22 20 73 68 65 6c 6c | 2d 62 61 63 6b 77 61 72 |." shell|-backwar|
|000018f0| 64 2d 63 6f 6d 6d 61 6e | 64 20 22 09 22 20 63 6f |d-comman|d "." co|
|00001900| 6d 69 6e 74 2d 64 79 6e | 61 6d 69 63 2d 63 6f 6d |mint-dyn|amic-com|
|00001910| 70 6c 65 74 65 20 22 bf | 22 20 63 6f 6d 69 6e 74 |plete ".|" comint|
|00001920| 2d 64 79 6e 61 6d 69 63 | 2d 6c 69 73 74 2d 66 69 |-dynamic|-list-fi|
|00001930| 6c 65 6e 61 6d 65 2d 63 | 6f 6d 70 6c 65 74 69 6f |lename-c|ompletio|
|00001940| 6e 73 20 22 8d 22 20 73 | 68 65 6c 6c 2d 72 65 73 |ns "." s|hell-res|
|00001950| 79 6e 63 2d 64 69 72 73 | 5d 20 34 29 0a 28 63 75 |ync-dirs|] 4).(cu|
|00001960| 73 74 6f 6d 2d 64 65 63 | 6c 61 72 65 2d 76 61 72 |stom-dec|lare-var|
|00001970| 69 61 62 6c 65 20 27 73 | 68 65 6c 6c 2d 6d 6f 64 |iable 's|hell-mod|
|00001980| 65 2d 68 6f 6f 6b 20 27 | 6e 69 6c 20 22 2a 48 6f |e-hook '|nil "*Ho|
|00001990| 6f 6b 20 66 6f 72 20 63 | 75 73 74 6f 6d 69 73 69 |ok for c|ustomisi|
|000019a0| 6e 67 20 53 68 65 6c 6c | 20 6d 6f 64 65 2e 22 20 |ng Shell| mode." |
|000019b0| 3a 74 79 70 65 20 27 68 | 6f 6f 6b 20 3a 67 72 6f |:type 'h|ook :gro|
|000019c0| 75 70 20 27 73 68 65 6c | 6c 29 0a 28 63 75 73 74 |up 'shel|l).(cust|
|000019d0| 6f 6d 2d 64 65 63 6c 61 | 72 65 2d 76 61 72 69 61 |om-decla|re-varia|
|000019e0| 62 6c 65 20 27 73 68 65 | 6c 6c 2d 70 72 6f 6d 70 |ble 'she|ll-promp|
|000019f0| 74 2d 66 61 63 65 20 27 | 27 73 68 65 6c 6c 2d 70 |t-face '|'shell-p|
|00001a00| 72 6f 6d 70 74 2d 66 61 | 63 65 20 22 46 61 63 65 |rompt-fa|ce "Face|
|00001a10| 20 66 6f 72 20 73 68 65 | 6c 6c 20 70 72 6f 6d 70 | for she|ll promp|
|00001a20| 74 73 2e 22 20 3a 74 79 | 70 65 20 27 66 61 63 65 |ts." :ty|pe 'face|
|00001a30| 20 3a 67 72 6f 75 70 20 | 27 73 68 65 6c 6c 2d 66 | :group |'shell-f|
|00001a40| 61 63 65 73 29 0a 28 63 | 75 73 74 6f 6d 2d 64 65 |aces).(c|ustom-de|
|00001a50| 63 6c 61 72 65 2d 76 61 | 72 69 61 62 6c 65 20 27 |clare-va|riable '|
|00001a60| 73 68 65 6c 6c 2d 6f 70 | 74 69 6f 6e 2d 66 61 63 |shell-op|tion-fac|
|00001a70| 65 20 27 27 73 68 65 6c | 6c 2d 6f 70 74 69 6f 6e |e ''shel|l-option|
|00001a80| 2d 66 61 63 65 20 22 46 | 61 63 65 20 66 6f 72 20 |-face "F|ace for |
|00001a90| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 20 6f 70 74 |command |line opt|
|00001aa0| 69 6f 6e 73 2e 22 20 3a | 74 79 70 65 20 27 66 61 |ions." :|type 'fa|
|00001ab0| 63 65 20 3a 67 72 6f 75 | 70 20 27 73 68 65 6c 6c |ce :grou|p 'shell|
|00001ac0| 2d 66 61 63 65 73 29 0a | 28 63 75 73 74 6f 6d 2d |-faces).|(custom-|
|00001ad0| 64 65 63 6c 61 72 65 2d | 76 61 72 69 61 62 6c 65 |declare-|variable|
|00001ae0| 20 27 73 68 65 6c 6c 2d | 6f 75 74 70 75 74 2d 66 | 'shell-|output-f|
|00001af0| 61 63 65 20 27 27 73 68 | 65 6c 6c 2d 6f 75 74 70 |ace ''sh|ell-outp|
|00001b00| 75 74 2d 66 61 63 65 20 | 22 46 61 63 65 20 66 6f |ut-face |"Face fo|
|00001b10| 72 20 67 65 6e 65 72 69 | 63 20 73 68 65 6c 6c 20 |r generi|c shell |
|00001b20| 6f 75 74 70 75 74 2e 22 | 20 3a 74 79 70 65 20 27 |output."| :type '|
|00001b30| 66 61 63 65 20 3a 67 72 | 6f 75 70 20 27 73 68 65 |face :gr|oup 'she|
|00001b40| 6c 6c 2d 66 61 63 65 73 | 29 0a 28 63 75 73 74 6f |ll-faces|).(custo|
|00001b50| 6d 2d 64 65 63 6c 61 72 | 65 2d 76 61 72 69 61 62 |m-declar|e-variab|
|00001b60| 6c 65 20 27 73 68 65 6c | 6c 2d 6f 75 74 70 75 74 |le 'shel|l-output|
|00001b70| 2d 32 2d 66 61 63 65 20 | 27 27 73 68 65 6c 6c 2d |-2-face |''shell-|
|00001b80| 6f 75 74 70 75 74 2d 32 | 2d 66 61 63 65 20 22 46 |output-2|-face "F|
|00001b90| 61 63 65 20 66 6f 72 20 | 67 72 65 70 2d 6c 69 6b |ace for |grep-lik|
|00001ba0| 65 20 6f 75 74 70 75 74 | 2e 22 20 3a 74 79 70 65 |e output|." :type|
|00001bb0| 20 27 66 61 63 65 20 3a | 67 72 6f 75 70 20 27 73 | 'face :|group 's|
|00001bc0| 68 65 6c 6c 2d 66 61 63 | 65 73 29 0a 28 63 75 73 |hell-fac|es).(cus|
|00001bd0| 74 6f 6d 2d 64 65 63 6c | 61 72 65 2d 76 61 72 69 |tom-decl|are-vari|
|00001be0| 61 62 6c 65 20 27 73 68 | 65 6c 6c 2d 6f 75 74 70 |able 'sh|ell-outp|
|00001bf0| 75 74 2d 33 2d 66 61 63 | 65 20 27 27 73 68 65 6c |ut-3-fac|e ''shel|
|00001c00| 6c 2d 6f 75 74 70 75 74 | 2d 33 2d 66 61 63 65 20 |l-output|-3-face |
|00001c10| 22 46 61 63 65 20 66 6f | 72 20 5b 4e 5d 20 6f 75 |"Face fo|r [N] ou|
|00001c20| 74 70 75 74 20 77 68 65 | 72 65 20 4e 20 69 73 20 |tput whe|re N is |
|00001c30| 61 20 6e 75 6d 62 65 72 | 2e 22 20 3a 74 79 70 65 |a number|." :type|
|00001c40| 20 27 66 61 63 65 20 3a | 67 72 6f 75 70 20 27 73 | 'face :|group 's|
|00001c50| 68 65 6c 6c 2d 66 61 63 | 65 73 29 0a 28 62 79 74 |hell-fac|es).(byt|
|00001c60| 65 2d 63 6f 64 65 20 22 | c0 09 21 88 c0 5c 6e 21 |e-code "|..!..\n!|
|00001c70| 88 c0 0b 21 88 c0 0c 21 | 88 c0 0d 21 87 22 20 5b |...!...!|...!." [|
|00001c80| 6d 61 6b 65 2d 66 61 63 | 65 20 73 68 65 6c 6c 2d |make-fac|e shell-|
|00001c90| 70 72 6f 6d 70 74 2d 66 | 61 63 65 20 73 68 65 6c |prompt-f|ace shel|
|00001ca0| 6c 2d 6f 70 74 69 6f 6e | 2d 66 61 63 65 20 73 68 |l-option|-face sh|
|00001cb0| 65 6c 6c 2d 6f 75 74 70 | 75 74 2d 66 61 63 65 20 |ell-outp|ut-face |
|00001cc0| 73 68 65 6c 6c 2d 6f 75 | 74 70 75 74 2d 32 2d 66 |shell-ou|tput-2-f|
|00001cd0| 61 63 65 20 73 68 65 6c | 6c 2d 6f 75 74 70 75 74 |ace shel|l-output|
|00001ce0| 2d 33 2d 66 61 63 65 5d | 20 32 29 0a 28 64 65 66 |-3-face]| 2).(def|
|00001cf0| 61 6c 69 61 73 20 27 73 | 68 65 6c 6c 2d 66 6f 6e |alias 's|hell-fon|
|00001d00| 74 2d 6c 6f 63 6b 2d 6d | 6f 64 65 2d 68 6f 6f 6b |t-lock-m|ode-hook|
|00001d10| 20 23 5b 6e 69 6c 20 22 | c0 09 21 ac 85 c2 c3 09 | #[nil "|..!.....|
|00001d20| 5c 22 88 c0 0c 21 ac 85 | c2 c5 0c 5c 22 88 c0 0e |\"...!..|...\"...|
|00001d30| 06 21 ac 86 c2 c7 0e 06 | 5c 22 88 c0 0e 08 21 ac |.!......|\"....!.|
|00001d40| 86 c2 c9 0e 08 5c 22 88 | c0 0e 5c 6e 21 ac 86 c2 |.....\".|..\n!...|
|00001d50| c9 0e 5c 6e 5c 22 88 cb | cc cd 5c 22 87 22 20 5b |..\n\"..|..\"." [|
|00001d60| 66 61 63 65 2d 64 69 66 | 66 65 72 73 2d 66 72 6f |face-dif|fers-fro|
|00001d70| 6d 2d 64 65 66 61 75 6c | 74 2d 70 20 73 68 65 6c |m-defaul|t-p shel|
|00001d80| 6c 2d 70 72 6f 6d 70 74 | 2d 66 61 63 65 20 63 6f |l-prompt|-face co|
|00001d90| 70 79 2d 66 61 63 65 20 | 66 6f 6e 74 2d 6c 6f 63 |py-face |font-loc|
|00001da0| 6b 2d 6b 65 79 77 6f 72 | 64 2d 66 61 63 65 20 73 |k-keywor|d-face s|
|00001db0| 68 65 6c 6c 2d 6f 70 74 | 69 6f 6e 2d 66 61 63 65 |hell-opt|ion-face|
|00001dc0| 20 66 6f 6e 74 2d 6c 6f | 63 6b 2d 63 6f 6d 6d 65 | font-lo|ck-comme|
|00001dd0| 6e 74 2d 66 61 63 65 20 | 73 68 65 6c 6c 2d 6f 75 |nt-face |shell-ou|
|00001de0| 74 70 75 74 2d 66 61 63 | 65 20 69 74 61 6c 69 63 |tput-fac|e italic|
|00001df0| 20 73 68 65 6c 6c 2d 6f | 75 74 70 75 74 2d 32 2d | shell-o|utput-2-|
|00001e00| 66 61 63 65 20 66 6f 6e | 74 2d 6c 6f 63 6b 2d 73 |face fon|t-lock-s|
|00001e10| 74 72 69 6e 67 2d 66 61 | 63 65 20 73 68 65 6c 6c |tring-fa|ce shell|
|00001e20| 2d 6f 75 74 70 75 74 2d | 33 2d 66 61 63 65 20 72 |-output-|3-face r|
|00001e30| 65 6d 6f 76 65 2d 68 6f | 6f 6b 20 66 6f 6e 74 2d |emove-ho|ok font-|
|00001e40| 6c 6f 63 6b 2d 6d 6f 64 | 65 2d 68 6f 6f 6b 20 73 |lock-mod|e-hook s|
|00001e50| 68 65 6c 6c 2d 66 6f 6e | 74 2d 6c 6f 63 6b 2d 6d |hell-fon|t-lock-m|
|00001e60| 6f 64 65 2d 68 6f 6f 6b | 5d 20 33 5d 29 0a 28 61 |ode-hook|] 3]).(a|
|00001e70| 64 64 2d 68 6f 6f 6b 20 | 27 66 6f 6e 74 2d 6c 6f |dd-hook |'font-lo|
|00001e80| 63 6b 2d 6d 6f 64 65 2d | 68 6f 6f 6b 20 27 73 68 |ck-mode-|hook 'sh|
|00001e90| 65 6c 6c 2d 66 6f 6e 74 | 2d 6c 6f 63 6b 2d 6d 6f |ell-font|-lock-mo|
|00001ea0| 64 65 2d 68 6f 6f 6b 29 | 0a 23 40 32 31 37 20 49 |de-hook)|.#@217 I|
|00001eb0| 66 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 70 61 74 74 65 |f non-ni|l, patte|
|00001ec0| 72 6e 20 74 6f 20 75 73 | 65 20 74 6f 20 66 6f 6e |rn to us|e to fon|
|00001ed0| 74 2d 6c 6f 63 6b 20 74 | 68 65 20 70 72 6f 6d 70 |t-lock t|he promp|
|00001ee0| 74 2e 0a 57 68 65 6e 20 | 6e 69 6c 2c 20 73 68 65 |t..When |nil, she|
|00001ef0| 6c 6c 2d 70 72 6f 6d 70 | 74 2d 70 61 74 74 65 72 |ll-promp|t-patter|
|00001f00| 6e 20 77 69 6c 6c 20 62 | 65 20 75 73 65 64 2e 20 |n will b|e used. |
|00001f10| 20 53 65 74 20 74 68 69 | 73 20 74 6f 20 61 20 72 | Set thi|s to a r|
|00001f20| 65 67 75 6c 61 72 0a 65 | 78 70 72 65 73 73 69 6f |egular.e|xpressio|
|00001f30| 6e 20 69 66 20 79 6f 75 | 20 77 61 6e 74 20 74 68 |n if you| want th|
|00001f40| 65 20 66 6f 6e 74 2d 6c | 6f 63 6b 65 64 20 70 61 |e font-l|ocked pa|
|00001f50| 74 74 65 72 6e 20 74 6f | 20 62 65 20 64 69 66 66 |ttern to| be diff|
|00001f60| 65 72 65 6e 74 20 74 68 | 65 6e 0a 74 68 65 20 73 |erent th|en.the s|
|00001f70| 68 65 6c 6c 27 73 20 70 | 72 6f 6d 70 74 20 70 61 |hell's p|rompt pa|
|00001f80| 74 74 65 72 6e 2e 1f 0a | 28 64 65 66 76 61 72 20 |ttern...|(defvar |
|00001f90| 73 68 65 6c 6c 2d 70 72 | 6f 6d 70 74 2d 70 61 74 |shell-pr|ompt-pat|
|00001fa0| 74 65 72 6e 2d 66 6f 72 | 2d 66 6f 6e 74 2d 6c 6f |tern-for|-font-lo|
|00001fb0| 63 6b 20 6e 69 6c 20 28 | 23 24 20 2e 20 37 38 35 |ck nil (|#$ . 785|
|00001fc0| 35 29 29 0a 23 40 35 32 | 20 41 64 64 69 74 69 6f |5)).#@52| Additio|
|00001fd0| 6e 61 6c 20 65 78 70 72 | 65 73 73 69 6f 6e 73 20 |nal expr|essions |
|00001fe0| 74 6f 20 68 69 67 68 6c | 69 67 68 74 20 69 6e 20 |to highl|ight in |
|00001ff0| 53 68 65 6c 6c 20 6d 6f | 64 65 2e 1f 0a 28 64 65 |Shell mo|de...(de|
|00002000| 66 76 61 72 20 73 68 65 | 6c 6c 2d 66 6f 6e 74 2d |fvar she|ll-font-|
|00002010| 6c 6f 63 6b 2d 6b 65 79 | 77 6f 72 64 73 20 28 6c |lock-key|words (l|
|00002020| 69 73 74 20 27 28 65 76 | 61 6c 20 63 6f 6e 73 20 |ist '(ev|al cons |
|00002030| 28 69 66 20 73 68 65 6c | 6c 2d 70 72 6f 6d 70 74 |(if shel|l-prompt|
|00002040| 2d 70 61 74 74 65 72 6e | 2d 66 6f 72 2d 66 6f 6e |-pattern|-for-fon|
|00002050| 74 2d 6c 6f 63 6b 20 73 | 68 65 6c 6c 2d 70 72 6f |t-lock s|hell-pro|
|00002060| 6d 70 74 2d 70 61 74 74 | 65 72 6e 2d 66 6f 72 2d |mpt-patt|ern-for-|
|00002070| 66 6f 6e 74 2d 6c 6f 63 | 6b 20 73 68 65 6c 6c 2d |font-loc|k shell-|
|00002080| 70 72 6f 6d 70 74 2d 70 | 61 74 74 65 72 6e 29 20 |prompt-p|attern) |
|00002090| 73 68 65 6c 6c 2d 70 72 | 6f 6d 70 74 2d 66 61 63 |shell-pr|ompt-fac|
|000020a0| 65 29 20 27 28 22 5b 20 | 09 5d 5c 5c 28 5b 2b 2d |e) '("[ |.]\\([+-|
|000020b0| 5d 5b 5e 20 09 5c 6e 3e | 5d 2b 5c 5c 29 22 20 31 |][^ .\n>|]+\\)" 1|
|000020c0| 20 73 68 65 6c 6c 2d 6f | 70 74 69 6f 6e 2d 66 61 | shell-o|ption-fa|
|000020d0| 63 65 29 20 27 28 22 5e | 5b 5e 20 09 5c 6e 5d 2b |ce) '("^|[^ .\n]+|
|000020e0| 3a 2e 2a 22 20 2e 20 73 | 68 65 6c 6c 2d 6f 75 74 |:.*" . s|hell-out|
|000020f0| 70 75 74 2d 32 2d 66 61 | 63 65 29 20 27 28 22 5e |put-2-fa|ce) '("^|
|00002100| 5c 5c 5b 5b 31 2d 39 5d | 5b 30 2d 39 5d 2a 5c 5c |\\[[1-9]|[0-9]*\\|
|00002110| 5d 22 20 2e 20 73 68 65 | 6c 6c 2d 6f 75 74 70 75 |]" . she|ll-outpu|
|00002120| 74 2d 33 2d 66 61 63 65 | 29 20 27 28 22 5e 5b 5e |t-3-face|) '("^[^|
|00002130| 5c 6e 5d 2b 2e 2a 24 22 | 20 2e 20 73 68 65 6c 6c |\n]+.*$"| . shell|
|00002140| 2d 6f 75 74 70 75 74 2d | 66 61 63 65 29 29 20 28 |-output-|face)) (|
|00002150| 23 24 20 2e 20 38 31 33 | 37 29 29 0a 28 70 75 74 |#$ . 813|7)).(put|
|00002160| 20 27 73 68 65 6c 6c 2d | 6d 6f 64 65 20 27 66 6f | 'shell-|mode 'fo|
|00002170| 6e 74 2d 6c 6f 63 6b 2d | 64 65 66 61 75 6c 74 73 |nt-lock-|defaults|
|00002180| 20 27 28 73 68 65 6c 6c | 2d 66 6f 6e 74 2d 6c 6f | '(shell|-font-lo|
|00002190| 63 6b 2d 6b 65 79 77 6f | 72 64 73 20 74 29 29 0a |ck-keywo|rds t)).|
|000021a0| 23 40 32 38 34 39 20 4d | 61 6a 6f 72 20 6d 6f 64 |#@2849 M|ajor mod|
|000021b0| 65 20 66 6f 72 20 69 6e | 74 65 72 61 63 74 69 6e |e for in|teractin|
|000021c0| 67 20 77 69 74 68 20 61 | 6e 20 69 6e 66 65 72 69 |g with a|n inferi|
|000021d0| 6f 72 20 73 68 65 6c 6c | 2e 0a 5c 3c 73 68 65 6c |or shell|..\<shel|
|000021e0| 6c 2d 6d 6f 64 65 2d 6d | 61 70 3e 5c 5b 63 6f 6d |l-mode-m|ap>\[com|
|000021f0| 69 6e 74 2d 73 65 6e 64 | 2d 69 6e 70 75 74 5d 20 |int-send|-input] |
|00002200| 61 66 74 65 72 20 74 68 | 65 20 65 6e 64 20 6f 66 |after th|e end of|
|00002210| 20 74 68 65 20 70 72 6f | 63 65 73 73 27 20 6f 75 | the pro|cess' ou|
|00002220| 74 70 75 74 20 73 65 6e | 64 73 20 74 68 65 20 74 |tput sen|ds the t|
|00002230| 65 78 74 20 66 72 6f 6d | 0a 20 20 20 20 74 68 65 |ext from|. the|
|00002240| 20 65 6e 64 20 6f 66 20 | 70 72 6f 63 65 73 73 20 | end of |process |
|00002250| 74 6f 20 74 68 65 20 65 | 6e 64 20 6f 66 20 74 68 |to the e|nd of th|
|00002260| 65 20 63 75 72 72 65 6e | 74 20 6c 69 6e 65 2e 0a |e curren|t line..|
|00002270| 5c 5b 63 6f 6d 69 6e 74 | 2d 73 65 6e 64 2d 69 6e |\[comint|-send-in|
|00002280| 70 75 74 5d 20 62 65 66 | 6f 72 65 20 65 6e 64 20 |put] bef|ore end |
|00002290| 6f 66 20 70 72 6f 63 65 | 73 73 20 6f 75 74 70 75 |of proce|ss outpu|
|000022a0| 74 20 63 6f 70 69 65 73 | 20 74 68 65 20 63 75 72 |t copies| the cur|
|000022b0| 72 65 6e 74 20 6c 69 6e | 65 20 6d 69 6e 75 73 20 |rent lin|e minus |
|000022c0| 74 68 65 0a 20 20 20 20 | 70 72 6f 6d 70 74 20 74 |the. |prompt t|
|000022d0| 6f 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |o the en|d of the|
|000022e0| 20 62 75 66 66 65 72 20 | 61 6e 64 20 73 65 6e 64 | buffer |and send|
|000022f0| 73 20 69 74 20 28 5c 5b | 63 6f 6d 69 6e 74 2d 63 |s it (\[|comint-c|
|00002300| 6f 70 79 2d 6f 6c 64 2d | 69 6e 70 75 74 5d 20 6a |opy-old-|input] j|
|00002310| 75 73 74 20 63 6f 70 69 | 65 73 0a 20 20 20 20 74 |ust copi|es. t|
|00002320| 68 65 20 63 75 72 72 65 | 6e 74 20 6c 69 6e 65 29 |he curre|nt line)|
|00002330| 2e 0a 5c 5b 73 65 6e 64 | 2d 69 6e 76 69 73 69 62 |..\[send|-invisib|
|00002340| 6c 65 5d 20 72 65 61 64 | 73 20 61 20 6c 69 6e 65 |le] read|s a line|
|00002350| 20 6f 66 20 74 65 78 74 | 20 77 69 74 68 6f 75 74 | of text| without|
|00002360| 20 65 63 68 6f 69 6e 67 | 20 69 74 2c 20 61 6e 64 | echoing| it, and|
|00002370| 20 73 65 6e 64 73 20 69 | 74 20 74 6f 0a 20 20 20 | sends i|t to. |
|00002380| 20 74 68 65 20 73 68 65 | 6c 6c 2e 20 20 54 68 69 | the she|ll. Thi|
|00002390| 73 20 69 73 20 75 73 65 | 66 75 6c 20 66 6f 72 20 |s is use|ful for |
|000023a0| 65 6e 74 65 72 69 6e 67 | 20 70 61 73 73 77 6f 72 |entering| passwor|
|000023b0| 64 73 2e 20 20 4f 72 2c | 20 61 64 64 20 74 68 65 |ds. Or,| add the|
|000023c0| 20 66 75 6e 63 74 69 6f | 6e 0a 20 20 20 20 60 63 | functio|n. `c|
|000023d0| 6f 6d 69 6e 74 2d 77 61 | 74 63 68 2d 66 6f 72 2d |omint-wa|tch-for-|
|000023e0| 70 61 73 73 77 6f 72 64 | 2d 70 72 6f 6d 70 74 27 |password|-prompt'|
|000023f0| 20 74 6f 20 60 63 6f 6d | 69 6e 74 2d 6f 75 74 70 | to `com|int-outp|
|00002400| 75 74 2d 66 69 6c 74 65 | 72 2d 66 75 6e 63 74 69 |ut-filte|r-functi|
|00002410| 6f 6e 73 27 2e 0a 0a 49 | 66 20 79 6f 75 20 77 61 |ons'...I|f you wa|
|00002420| 6e 74 20 74 6f 20 6d 61 | 6b 65 20 6d 75 6c 74 69 |nt to ma|ke multi|
|00002430| 70 6c 65 20 73 68 65 6c | 6c 20 62 75 66 66 65 72 |ple shel|l buffer|
|00002440| 73 2c 20 72 65 6e 61 6d | 65 20 74 68 65 20 60 2a |s, renam|e the `*|
|00002450| 73 68 65 6c 6c 2a 27 20 | 62 75 66 66 65 72 0a 75 |shell*' |buffer.u|
|00002460| 73 69 6e 67 20 5c 5b 72 | 65 6e 61 6d 65 2d 62 75 |sing \[r|ename-bu|
|00002470| 66 66 65 72 5d 20 6f 72 | 20 5c 5b 72 65 6e 61 6d |ffer] or| \[renam|
|00002480| 65 2d 75 6e 69 71 75 65 | 6c 79 5d 20 61 6e 64 20 |e-unique|ly] and |
|00002490| 73 74 61 72 74 20 61 20 | 6e 65 77 20 73 68 65 6c |start a |new shel|
|000024a0| 6c 2e 0a 0a 49 66 20 79 | 6f 75 20 77 61 6e 74 20 |l...If y|ou want |
|000024b0| 74 6f 20 6d 61 6b 65 20 | 73 68 65 6c 6c 20 62 75 |to make |shell bu|
|000024c0| 66 66 65 72 73 20 6c 69 | 6d 69 74 65 64 20 69 6e |ffers li|mited in|
|000024d0| 20 6c 65 6e 67 74 68 2c | 20 61 64 64 20 74 68 65 | length,| add the|
|000024e0| 20 66 75 6e 63 74 69 6f | 6e 0a 60 63 6f 6d 69 6e | functio|n.`comin|
|000024f0| 74 2d 74 72 75 6e 63 61 | 74 65 2d 62 75 66 66 65 |t-trunca|te-buffe|
|00002500| 72 27 20 74 6f 20 60 63 | 6f 6d 69 6e 74 2d 6f 75 |r' to `c|omint-ou|
|00002510| 74 70 75 74 2d 66 69 6c | 74 65 72 2d 66 75 6e 63 |tput-fil|ter-func|
|00002520| 74 69 6f 6e 73 27 2e 0a | 0a 49 66 20 79 6f 75 20 |tions'..|.If you |
|00002530| 61 63 63 69 64 65 6e 74 | 61 6c 6c 79 20 73 75 73 |accident|ally sus|
|00002540| 70 65 6e 64 20 79 6f 75 | 72 20 70 72 6f 63 65 73 |pend you|r proces|
|00002550| 73 2c 20 75 73 65 20 5c | 5b 63 6f 6d 69 6e 74 2d |s, use \|[comint-|
|00002560| 63 6f 6e 74 69 6e 75 65 | 2d 73 75 62 6a 6f 62 5d |continue|-subjob]|
|00002570| 0a 74 6f 20 63 6f 6e 74 | 69 6e 75 65 20 69 74 2e |.to cont|inue it.|
|00002580| 0a 0a 60 63 64 27 2c 20 | 60 70 75 73 68 64 27 20 |..`cd', |`pushd' |
|00002590| 61 6e 64 20 60 70 6f 70 | 64 27 20 63 6f 6d 6d 61 |and `pop|d' comma|
|000025a0| 6e 64 73 20 67 69 76 65 | 6e 20 74 6f 20 74 68 65 |nds give|n to the|
|000025b0| 20 73 68 65 6c 6c 20 61 | 72 65 20 77 61 74 63 68 | shell a|re watch|
|000025c0| 65 64 20 62 79 20 45 6d | 61 63 73 20 74 6f 0a 6b |ed by Em|acs to.k|
|000025d0| 65 65 70 20 74 68 69 73 | 20 62 75 66 66 65 72 27 |eep this| buffer'|
|000025e0| 73 20 64 65 66 61 75 6c | 74 20 64 69 72 65 63 74 |s defaul|t direct|
|000025f0| 6f 72 79 20 74 68 65 20 | 73 61 6d 65 20 61 73 20 |ory the |same as |
|00002600| 74 68 65 20 73 68 65 6c | 6c 27 73 20 77 6f 72 6b |the shel|l's work|
|00002610| 69 6e 67 20 64 69 72 65 | 63 74 6f 72 79 2e 0a 57 |ing dire|ctory..W|
|00002620| 68 69 6c 65 20 64 69 72 | 65 63 74 6f 72 79 20 74 |hile dir|ectory t|
|00002630| 72 61 63 6b 69 6e 67 20 | 69 73 20 65 6e 61 62 6c |racking |is enabl|
|00002640| 65 64 2c 20 74 68 65 20 | 73 68 65 6c 6c 27 73 20 |ed, the |shell's |
|00002650| 77 6f 72 6b 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |working |director|
|00002660| 79 20 69 73 20 64 69 73 | 70 6c 61 79 65 64 0a 62 |y is dis|played.b|
|00002670| 79 20 5c 5b 6c 69 73 74 | 2d 62 75 66 66 65 72 73 |y \[list|-buffers|
|00002680| 5d 20 6f 72 20 5c 5b 6d | 6f 75 73 65 2d 62 75 66 |] or \[m|ouse-buf|
|00002690| 66 65 72 2d 6d 65 6e 75 | 5d 20 69 6e 20 74 68 65 |fer-menu|] in the|
|000026a0| 20 60 46 69 6c 65 27 20 | 66 69 65 6c 64 2e 0a 5c | `File' |field..\|
|000026b0| 5b 73 68 65 6c 6c 2d 72 | 65 73 79 6e 63 2d 64 69 |[shell-r|esync-di|
|000026c0| 72 73 5d 20 71 75 65 72 | 69 65 73 20 74 68 65 20 |rs] quer|ies the |
|000026d0| 73 68 65 6c 6c 20 61 6e | 64 20 72 65 73 79 6e 63 |shell an|d resync|
|000026e0| 73 20 45 6d 61 63 73 27 | 20 69 64 65 61 20 6f 66 |s Emacs'| idea of|
|000026f0| 20 77 68 61 74 20 74 68 | 65 0a 20 20 20 20 63 75 | what th|e. cu|
|00002700| 72 72 65 6e 74 20 64 69 | 72 65 63 74 6f 72 79 20 |rrent di|rectory |
|00002710| 73 74 61 63 6b 20 69 73 | 2e 0a 5c 5b 73 68 65 6c |stack is|..\[shel|
|00002720| 6c 2d 64 69 72 74 72 61 | 63 6b 2d 74 6f 67 67 6c |l-dirtra|ck-toggl|
|00002730| 65 5d 20 74 75 72 6e 73 | 20 64 69 72 65 63 74 6f |e] turns| directo|
|00002740| 72 79 20 74 72 61 63 6b | 69 6e 67 20 6f 6e 20 61 |ry track|ing on a|
|00002750| 6e 64 20 6f 66 66 2e 0a | 0a 5c 7b 73 68 65 6c 6c |nd off..|.\{shell|
|00002760| 2d 6d 6f 64 65 2d 6d 61 | 70 7d 0a 43 75 73 74 6f |-mode-ma|p}.Custo|
|00002770| 6d 69 7a 61 74 69 6f 6e | 3a 20 45 6e 74 72 79 20 |mization|: Entry |
|00002780| 74 6f 20 74 68 69 73 20 | 6d 6f 64 65 20 72 75 6e |to this |mode run|
|00002790| 73 20 74 68 65 20 68 6f | 6f 6b 73 20 6f 6e 20 60 |s the ho|oks on `|
|000027a0| 63 6f 6d 69 6e 74 2d 6d | 6f 64 65 2d 68 6f 6f 6b |comint-m|ode-hook|
|000027b0| 27 20 61 6e 64 0a 60 73 | 68 65 6c 6c 2d 6d 6f 64 |' and.`s|hell-mod|
|000027c0| 65 2d 68 6f 6f 6b 27 20 | 28 69 6e 20 74 68 61 74 |e-hook' |(in that|
|000027d0| 20 6f 72 64 65 72 29 2e | 20 20 42 65 66 6f 72 65 | order).| Before|
|000027e0| 20 65 61 63 68 20 69 6e | 70 75 74 2c 20 74 68 65 | each in|put, the|
|000027f0| 20 68 6f 6f 6b 73 20 6f | 6e 0a 60 63 6f 6d 69 6e | hooks o|n.`comin|
|00002800| 74 2d 69 6e 70 75 74 2d | 66 69 6c 74 65 72 2d 66 |t-input-|filter-f|
|00002810| 75 6e 63 74 69 6f 6e 73 | 27 20 61 72 65 20 72 75 |unctions|' are ru|
|00002820| 6e 2e 20 20 41 66 74 65 | 72 20 65 61 63 68 20 73 |n. Afte|r each s|
|00002830| 68 65 6c 6c 20 6f 75 74 | 70 75 74 2c 20 74 68 65 |hell out|put, the|
|00002840| 20 68 6f 6f 6b 73 0a 6f | 6e 20 60 63 6f 6d 69 6e | hooks.o|n `comin|
|00002850| 74 2d 6f 75 74 70 75 74 | 2d 66 69 6c 74 65 72 2d |t-output|-filter-|
|00002860| 66 75 6e 63 74 69 6f 6e | 73 27 20 61 72 65 20 72 |function|s' are r|
|00002870| 75 6e 2e 0a 0a 56 61 72 | 69 61 62 6c 65 20 60 73 |un...Var|iable `s|
|00002880| 68 65 6c 6c 2d 6d 75 6c | 74 69 70 6c 65 2d 73 68 |hell-mul|tiple-sh|
|00002890| 65 6c 6c 73 27 20 77 69 | 6c 6c 20 61 75 74 6f 6d |ells' wi|ll autom|
|000028a0| 61 74 69 63 61 6c 6c 79 | 20 67 65 6e 65 72 61 74 |atically| generat|
|000028b0| 65 20 61 20 6e 65 77 20 | 73 68 65 6c 6c 20 65 61 |e a new |shell ea|
|000028c0| 63 68 0a 74 69 6d 65 20 | 69 74 20 69 73 20 69 6e |ch.time |it is in|
|000028d0| 76 6f 6b 65 64 2e 0a 0a | 56 61 72 69 61 62 6c 65 |voked...|Variable|
|000028e0| 73 20 60 73 68 65 6c 6c | 2d 63 64 2d 72 65 67 65 |s `shell|-cd-rege|
|000028f0| 78 70 27 2c 20 60 73 68 | 65 6c 6c 2d 70 75 73 68 |xp', `sh|ell-push|
|00002900| 64 2d 72 65 67 65 78 70 | 27 20 61 6e 64 20 60 73 |d-regexp|' and `s|
|00002910| 68 65 6c 6c 2d 70 6f 70 | 64 2d 72 65 67 65 78 70 |hell-pop|d-regexp|
|00002920| 27 0a 61 72 65 20 75 73 | 65 64 20 74 6f 20 6d 61 |'.are us|ed to ma|
|00002930| 74 63 68 20 74 68 65 69 | 72 20 72 65 73 70 65 63 |tch thei|r respec|
|00002940| 74 69 76 65 20 63 6f 6d | 6d 61 6e 64 73 2c 20 77 |tive com|mands, w|
|00002950| 68 69 6c 65 20 60 73 68 | 65 6c 6c 2d 70 75 73 68 |hile `sh|ell-push|
|00002960| 64 2d 74 6f 68 6f 6d 65 | 27 2c 0a 60 73 68 65 6c |d-tohome|',.`shel|
|00002970| 6c 2d 70 75 73 68 64 2d | 64 65 78 74 72 61 63 74 |l-pushd-|dextract|
|00002980| 27 20 61 6e 64 20 60 73 | 68 65 6c 6c 2d 70 75 73 |' and `s|hell-pus|
|00002990| 68 64 2d 64 75 6e 69 71 | 75 65 27 20 63 6f 6e 74 |hd-duniq|ue' cont|
|000029a0| 72 6f 6c 20 74 68 65 20 | 62 65 68 61 76 69 6f 72 |rol the |behavior|
|000029b0| 20 6f 66 20 74 68 65 0a | 72 65 6c 65 76 61 6e 74 | of the.|relevant|
|000029c0| 20 63 6f 6d 6d 61 6e 64 | 2e 0a 0a 56 61 72 69 61 | command|...Varia|
|000029d0| 62 6c 65 73 20 60 63 6f | 6d 69 6e 74 2d 63 6f 6d |bles `co|mint-com|
|000029e0| 70 6c 65 74 69 6f 6e 2d | 61 75 74 6f 6c 69 73 74 |pletion-|autolist|
|000029f0| 27 2c 20 60 63 6f 6d 69 | 6e 74 2d 63 6f 6d 70 6c |', `comi|nt-compl|
|00002a00| 65 74 69 6f 6e 2d 61 64 | 64 73 75 66 66 69 78 27 |etion-ad|dsuffix'|
|00002a10| 2c 0a 60 63 6f 6d 69 6e | 74 2d 63 6f 6d 70 6c 65 |,.`comin|t-comple|
|00002a20| 74 69 6f 6e 2d 72 65 63 | 65 78 61 63 74 27 20 61 |tion-rec|exact' a|
|00002a30| 6e 64 20 60 63 6f 6d 69 | 6e 74 2d 63 6f 6d 70 6c |nd `comi|nt-compl|
|00002a40| 65 74 69 6f 6e 2d 66 69 | 67 6e 6f 72 65 27 20 63 |etion-fi|gnore' c|
|00002a50| 6f 6e 74 72 6f 6c 20 74 | 68 65 0a 62 65 68 61 76 |ontrol t|he.behav|
|00002a60| 69 6f 72 20 6f 66 20 66 | 69 6c 65 20 6e 61 6d 65 |ior of f|ile name|
|00002a70| 2c 20 63 6f 6d 6d 61 6e | 64 20 6e 61 6d 65 20 61 |, comman|d name a|
|00002a80| 6e 64 20 76 61 72 69 61 | 62 6c 65 20 6e 61 6d 65 |nd varia|ble name|
|00002a90| 20 63 6f 6d 70 6c 65 74 | 69 6f 6e 2e 20 20 56 61 | complet|ion. Va|
|00002aa0| 72 69 61 62 6c 65 0a 60 | 73 68 65 6c 6c 2d 63 6f |riable.`|shell-co|
|00002ab0| 6d 70 6c 65 74 69 6f 6e | 2d 65 78 65 63 6f 6e 6c |mpletion|-execonl|
|00002ac0| 79 27 20 63 6f 6e 74 72 | 6f 6c 73 20 74 68 65 20 |y' contr|ols the |
|00002ad0| 62 65 68 61 76 69 6f 72 | 20 6f 66 20 63 6f 6d 6d |behavior| of comm|
|00002ae0| 61 6e 64 20 6e 61 6d 65 | 20 63 6f 6d 70 6c 65 74 |and name| complet|
|00002af0| 69 6f 6e 2e 0a 56 61 72 | 69 61 62 6c 65 20 60 73 |ion..Var|iable `s|
|00002b00| 68 65 6c 6c 2d 63 6f 6d | 70 6c 65 74 69 6f 6e 2d |hell-com|pletion-|
|00002b10| 66 69 67 6e 6f 72 65 27 | 20 69 73 20 75 73 65 64 |fignore'| is used|
|00002b20| 20 74 6f 20 69 6e 69 74 | 69 61 6c 69 73 65 20 74 | to init|ialise t|
|00002b30| 68 65 20 76 61 6c 75 65 | 20 6f 66 0a 60 63 6f 6d |he value| of.`com|
|00002b40| 69 6e 74 2d 63 6f 6d 70 | 6c 65 74 69 6f 6e 2d 66 |int-comp|letion-f|
|00002b50| 69 67 6e 6f 72 65 27 2e | 0a 0a 56 61 72 69 61 62 |ignore'.|..Variab|
|00002b60| 6c 65 73 20 60 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |les `com|int-inpu|
|00002b70| 74 2d 72 69 6e 67 2d 66 | 69 6c 65 2d 6e 61 6d 65 |t-ring-f|ile-name|
|00002b80| 27 20 61 6e 64 20 60 63 | 6f 6d 69 6e 74 2d 69 6e |' and `c|omint-in|
|00002b90| 70 75 74 2d 61 75 74 6f | 65 78 70 61 6e 64 27 20 |put-auto|expand' |
|00002ba0| 63 6f 6e 74 72 6f 6c 0a | 74 68 65 20 69 6e 69 74 |control.|the init|
|00002bb0| 69 61 6c 69 73 61 74 69 | 6f 6e 20 6f 66 20 74 68 |ialisati|on of th|
|00002bc0| 65 20 69 6e 70 75 74 20 | 72 69 6e 67 20 68 69 73 |e input |ring his|
|00002bd0| 74 6f 72 79 2c 20 61 6e | 64 20 68 69 73 74 6f 72 |tory, an|d histor|
|00002be0| 79 20 65 78 70 61 6e 73 | 69 6f 6e 2e 0a 0a 56 61 |y expans|ion...Va|
|00002bf0| 72 69 61 62 6c 65 73 20 | 60 63 6f 6d 69 6e 74 2d |riables |`comint-|
|00002c00| 6f 75 74 70 75 74 2d 66 | 69 6c 74 65 72 2d 66 75 |output-f|ilter-fu|
|00002c10| 6e 63 74 69 6f 6e 73 27 | 2c 20 61 20 68 6f 6f 6b |nctions'|, a hook|
|00002c20| 2c 20 61 6e 64 0a 60 63 | 6f 6d 69 6e 74 2d 73 63 |, and.`c|omint-sc|
|00002c30| 72 6f 6c 6c 2d 74 6f 2d | 62 6f 74 74 6f 6d 2d 6f |roll-to-|bottom-o|
|00002c40| 6e 2d 69 6e 70 75 74 27 | 20 61 6e 64 20 60 63 6f |n-input'| and `co|
|00002c50| 6d 69 6e 74 2d 73 63 72 | 6f 6c 6c 2d 74 6f 2d 62 |mint-scr|oll-to-b|
|00002c60| 6f 74 74 6f 6d 2d 6f 6e | 2d 6f 75 74 70 75 74 27 |ottom-on|-output'|
|00002c70| 0a 63 6f 6e 74 72 6f 6c | 20 77 68 65 74 68 65 72 |.control| whether|
|00002c80| 20 69 6e 70 75 74 20 61 | 6e 64 20 6f 75 74 70 75 | input a|nd outpu|
|00002c90| 74 20 63 61 75 73 65 20 | 74 68 65 20 77 69 6e 64 |t cause |the wind|
|00002ca0| 6f 77 20 74 6f 20 73 63 | 72 6f 6c 6c 20 74 6f 20 |ow to sc|roll to |
|00002cb0| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 0a 62 |the end |of the.b|
|00002cc0| 75 66 66 65 72 2e 1f 0a | 28 64 65 66 61 6c 69 61 |uffer...|(defalia|
|00002cd0| 73 20 27 73 68 65 6c 6c | 2d 6d 6f 64 65 20 23 5b |s 'shell|-mode #[|
|00002ce0| 6e 69 6c 20 22 c0 20 88 | c1 12 c3 14 c5 0e 06 21 |nil ". .|.......!|
|00002cf0| 88 c7 c8 21 88 0e 09 16 | 08 0e 5c 6e 16 0b c7 cc |...!....|..\n....|
|00002d00| 21 88 0e 0d 16 0c c7 ce | 21 88 cf 16 0e c7 d0 21 |!.......|!......!|
|00002d10| 88 d1 16 10 c7 d2 21 88 | d3 16 12 0e 14 16 15 0e |......!.|........|
|00002d20| 16 16 17 c7 d8 21 88 0e | 08 16 18 c7 d9 21 88 da |.....!..|.....!..|
|00002d30| 16 19 c7 db 21 88 da 16 | 1b c7 dc 21 88 dd 16 1c |....!...|...!....|
|00002d40| de df e0 da dd 24 88 0e | 21 16 5c 22 c7 e3 21 88 |.....$..|!.\"..!.|
|00002d50| e4 0e 25 21 16 23 e6 e7 | e8 70 21 21 40 21 1e 29 |..%!.#..|.p!!@!.)|
|00002d60| ea eb 21 ae 93 0e 29 ec | 98 ab 83 ed aa 8a 0e 29 |..!...).|.......)|
|00002d70| ee 98 ab 83 ef aa 81 f0 | 89 16 31 f2 6b ac 88 f3 |........|..1.k...|
|00002d80| 0e 31 21 f4 6b ab 83 da | 16 31 f5 f6 0e 29 5c 22 |.1!.k...|.1...)\"|
|00002d90| ab 83 f7 aa 81 f8 16 39 | 29 fa fb 21 88 fc dd 21 |.......9|)..!...!|
|00002da0| 88 fd 20 87 22 20 5b 63 | 6f 6d 69 6e 74 2d 6d 6f |.. ." [c|omint-mo|
|00002db0| 64 65 20 73 68 65 6c 6c | 2d 6d 6f 64 65 20 6d 61 |de shell|-mode ma|
|00002dc0| 6a 6f 72 2d 6d 6f 64 65 | 20 22 53 68 65 6c 6c 22 |jor-mode| "Shell"|
|00002dd0| 20 6d 6f 64 65 2d 6e 61 | 6d 65 20 75 73 65 2d 6c | mode-na|me use-l|
|00002de0| 6f 63 61 6c 2d 6d 61 70 | 20 73 68 65 6c 6c 2d 6d |ocal-map| shell-m|
|00002df0| 6f 64 65 2d 6d 61 70 20 | 6d 61 6b 65 2d 6c 6f 63 |ode-map |make-loc|
|00002e00| 61 6c 2d 76 61 72 69 61 | 62 6c 65 20 63 6f 6d 69 |al-varia|ble comi|
|00002e10| 6e 74 2d 70 72 6f 6d 70 | 74 2d 72 65 67 65 78 70 |nt-promp|t-regexp|
|00002e20| 20 73 68 65 6c 6c 2d 70 | 72 6f 6d 70 74 2d 70 61 | shell-p|rompt-pa|
|00002e30| 74 74 65 72 6e 20 73 68 | 65 6c 6c 2d 63 6f 6d 70 |ttern sh|ell-comp|
|00002e40| 6c 65 74 69 6f 6e 2d 66 | 69 67 6e 6f 72 65 20 63 |letion-f|ignore c|
|00002e50| 6f 6d 69 6e 74 2d 63 6f | 6d 70 6c 65 74 69 6f 6e |omint-co|mpletion|
|00002e60| 2d 66 69 67 6e 6f 72 65 | 20 63 6f 6d 69 6e 74 2d |-fignore| comint-|
|00002e70| 64 65 6c 69 6d 69 74 65 | 72 2d 61 72 67 75 6d 65 |delimite|r-argume|
|00002e80| 6e 74 2d 6c 69 73 74 20 | 73 68 65 6c 6c 2d 64 65 |nt-list |shell-de|
|00002e90| 6c 69 6d 69 74 65 72 2d | 61 72 67 75 6d 65 6e 74 |limiter-|argument|
|00002ea0| 2d 6c 69 73 74 20 63 6f | 6d 69 6e 74 2d 61 66 74 |-list co|mint-aft|
|00002eb0| 65 72 2d 70 61 72 74 69 | 61 6c 2d 66 69 6c 65 6e |er-parti|al-filen|
|00002ec0| 61 6d 65 2d 63 6f 6d 6d | 61 6e 64 20 73 68 65 6c |ame-comm|and shel|
|00002ed0| 6c 2d 61 66 74 65 72 2d | 70 61 72 74 69 61 6c 2d |l-after-|partial-|
|00002ee0| 66 69 6c 65 6e 61 6d 65 | 20 63 6f 6d 69 6e 74 2d |filename| comint-|
|00002ef0| 67 65 74 2d 63 75 72 72 | 65 6e 74 2d 63 6f 6d 6d |get-curr|ent-comm|
|00002f00| 61 6e 64 20 73 68 65 6c | 6c 2d 67 65 74 2d 63 75 |and shel|l-get-cu|
|00002f10| 72 72 65 6e 74 2d 63 6f | 6d 6d 61 6e 64 20 63 6f |rrent-co|mmand co|
|00002f20| 6d 69 6e 74 2d 64 79 6e | 61 6d 69 63 2d 63 6f 6d |mint-dyn|amic-com|
|00002f30| 70 6c 65 74 65 2d 63 6f | 6d 6d 61 6e 64 2d 63 6f |plete-co|mmand-co|
|00002f40| 6d 6d 61 6e 64 20 73 68 | 65 6c 6c 2d 64 79 6e 61 |mmand sh|ell-dyna|
|00002f50| 6d 69 63 2d 63 6f 6d 70 | 6c 65 74 65 2d 63 6f 6d |mic-comp|lete-com|
|00002f60| 6d 61 6e 64 20 73 68 65 | 6c 6c 2d 66 69 6c 65 2d |mand she|ll-file-|
|00002f70| 6e 61 6d 65 2d 71 75 6f | 74 65 2d 6c 69 73 74 20 |name-quo|te-list |
|00002f80| 63 6f 6d 69 6e 74 2d 66 | 69 6c 65 2d 6e 61 6d 65 |comint-f|ile-name|
|00002f90| 2d 71 75 6f 74 65 2d 6c | 69 73 74 20 73 68 65 6c |-quote-l|ist shel|
|00002fa0| 6c 2d 64 79 6e 61 6d 69 | 63 2d 63 6f 6d 70 6c 65 |l-dynami|c-comple|
|00002fb0| 74 65 2d 66 75 6e 63 74 | 69 6f 6e 73 20 63 6f 6d |te-funct|ions com|
|00002fc0| 69 6e 74 2d 64 79 6e 61 | 6d 69 63 2d 63 6f 6d 70 |int-dyna|mic-comp|
|00002fd0| 6c 65 74 65 2d 66 75 6e | 63 74 69 6f 6e 73 20 70 |lete-fun|ctions p|
|00002fe0| 61 72 61 67 72 61 70 68 | 2d 73 74 61 72 74 20 73 |aragraph|-start s|
|00002ff0| 68 65 6c 6c 2d 64 69 72 | 73 74 61 63 6b 20 6e 69 |hell-dir|stack ni|
|00003000| 6c 20 73 68 65 6c 6c 2d | 6c 61 73 74 2d 64 69 72 |l shell-|last-dir|
|00003010| 20 73 68 65 6c 6c 2d 64 | 69 72 74 72 61 63 6b 70 | shell-d|irtrackp|
|00003020| 20 74 20 61 64 64 2d 68 | 6f 6f 6b 20 63 6f 6d 69 | t add-h|ook comi|
|00003030| 6e 74 2d 69 6e 70 75 74 | 2d 66 69 6c 74 65 72 2d |nt-input|-filter-|
|00003040| 66 75 6e 63 74 69 6f 6e | 73 20 73 68 65 6c 6c 2d |function|s shell-|
|00003050| 64 69 72 65 63 74 6f 72 | 79 2d 74 72 61 63 6b 65 |director|y-tracke|
|00003060| 72 20 73 68 65 6c 6c 2d | 69 6e 70 75 74 2d 61 75 |r shell-|input-au|
|00003070| 74 6f 65 78 70 61 6e 64 | 20 63 6f 6d 69 6e 74 2d |toexpand| comint-|
|00003080| 69 6e 70 75 74 2d 61 75 | 74 6f 65 78 70 61 6e 64 |input-au|toexpand|
|00003090| 20 6c 69 73 74 2d 62 75 | 66 66 65 72 73 2d 64 69 | list-bu|ffers-di|
|000030a0| 72 65 63 74 6f 72 79 20 | 65 78 70 61 6e 64 2d 66 |rectory |expand-f|
|000030b0| 69 6c 65 2d 6e 61 6d 65 | 20 64 65 66 61 75 6c 74 |ile-name| default|
|000030c0| 2d 64 69 72 65 63 74 6f | 72 79 20 66 69 6c 65 2d |-directo|ry file-|
|000030d0| 6e 61 6d 65 2d 6e 6f 6e | 64 69 72 65 63 74 6f 72 |name-non|director|
|000030e0| 79 20 70 72 6f 63 65 73 | 73 2d 63 6f 6d 6d 61 6e |y proces|s-comman|
|000030f0| 64 20 67 65 74 2d 62 75 | 66 66 65 72 2d 70 72 6f |d get-bu|ffer-pro|
|00003100| 63 65 73 73 20 73 68 65 | 6c 6c 20 67 65 74 65 6e |cess she|ll geten|
|00003110| 76 20 22 48 49 53 54 46 | 49 4c 45 22 20 22 62 61 |v "HISTF|ILE" "ba|
|00003120| 73 68 22 20 22 7e 2f 2e | 62 61 73 68 5f 68 69 73 |sh" "~/.|bash_his|
|00003130| 74 6f 72 79 22 20 22 6b | 73 68 22 20 22 7e 2f 2e |tory" "k|sh" "~/.|
|00003140| 73 68 5f 68 69 73 74 6f | 72 79 22 20 22 7e 2f 2e |sh_histo|ry" "~/.|
|00003150| 68 69 73 74 6f 72 79 22 | 20 63 6f 6d 69 6e 74 2d |history"| comint-|
|00003160| 69 6e 70 75 74 2d 72 69 | 6e 67 2d 66 69 6c 65 2d |input-ri|ng-file-|
|00003170| 6e 61 6d 65 20 22 22 20 | 66 69 6c 65 2d 74 72 75 |name "" |file-tru|
|00003180| 65 6e 61 6d 65 20 22 2f | 64 65 76 2f 6e 75 6c 6c |ename "/|dev/null|
|00003190| 22 20 73 74 72 69 6e 67 | 2d 6d 61 74 63 68 20 22 |" string|-match "|
|000031a0| 5e 6b 3f 73 68 24 22 20 | 22 70 77 64 22 20 22 64 |^k?sh$" |"pwd" "d|
|000031b0| 69 72 73 22 20 73 68 65 | 6c 6c 2d 64 69 72 73 74 |irs" she|ll-dirst|
|000031c0| 61 63 6b 2d 71 75 65 72 | 79 20 72 75 6e 2d 68 6f |ack-quer|y run-ho|
|000031d0| 6f 6b 73 20 73 68 65 6c | 6c 2d 6d 6f 64 65 2d 68 |oks shel|l-mode-h|
|000031e0| 6f 6f 6b 20 63 6f 6d 69 | 6e 74 2d 72 65 61 64 2d |ook comi|nt-read-|
|000031f0| 69 6e 70 75 74 2d 72 69 | 6e 67 20 73 68 65 6c 6c |input-ri|ng shell|
|00003200| 2d 64 69 72 73 74 61 63 | 6b 2d 6d 65 73 73 61 67 |-dirstac|k-messag|
|00003210| 65 5d 20 36 20 28 23 24 | 20 2e 20 38 36 31 35 29 |e] 6 (#$| . 8615)|
|00003220| 20 6e 69 6c 5d 29 0a 23 | 40 31 30 32 37 20 52 75 | nil]).#|@1027 Ru|
|00003230| 6e 20 61 6e 20 69 6e 66 | 65 72 69 6f 72 20 73 68 |n an inf|erior sh|
|00003240| 65 6c 6c 2c 20 77 69 74 | 68 20 49 2f 4f 20 74 68 |ell, wit|h I/O th|
|00003250| 72 6f 75 67 68 20 62 75 | 66 66 65 72 20 2a 73 68 |rough bu|ffer *sh|
|00003260| 65 6c 6c 2a 2e 0a 49 66 | 20 62 75 66 66 65 72 20 |ell*..If| buffer |
|00003270| 65 78 69 73 74 73 20 62 | 75 74 20 73 68 65 6c 6c |exists b|ut shell|
|00003280| 20 70 72 6f 63 65 73 73 | 20 69 73 20 6e 6f 74 20 | process| is not |
|00003290| 72 75 6e 6e 69 6e 67 2c | 20 6d 61 6b 65 20 6e 65 |running,| make ne|
|000032a0| 77 20 73 68 65 6c 6c 2e | 0a 49 66 20 62 75 66 66 |w shell.|.If buff|
|000032b0| 65 72 20 65 78 69 73 74 | 73 20 61 6e 64 20 73 68 |er exist|s and sh|
|000032c0| 65 6c 6c 20 70 72 6f 63 | 65 73 73 20 69 73 20 72 |ell proc|ess is r|
|000032d0| 75 6e 6e 69 6e 67 2c 20 | 0a 20 6a 75 73 74 20 73 |unning, |. just s|
|000032e0| 77 69 74 63 68 20 74 6f | 20 62 75 66 66 65 72 20 |witch to| buffer |
|000032f0| 60 2a 73 68 65 6c 6c 2a | 27 2e 0a 50 72 6f 67 72 |`*shell*|'..Progr|
|00003300| 61 6d 20 75 73 65 64 20 | 63 6f 6d 65 73 20 66 72 |am used |comes fr|
|00003310| 6f 6d 20 76 61 72 69 61 | 62 6c 65 20 60 65 78 70 |om varia|ble `exp|
|00003320| 6c 69 63 69 74 2d 73 68 | 65 6c 6c 2d 66 69 6c 65 |licit-sh|ell-file|
|00003330| 2d 6e 61 6d 65 27 2c 0a | 20 6f 72 20 28 69 66 20 |-name',.| or (if |
|00003340| 74 68 61 74 20 69 73 20 | 6e 69 6c 29 20 66 72 6f |that is |nil) fro|
|00003350| 6d 20 74 68 65 20 45 53 | 48 45 4c 4c 20 65 6e 76 |m the ES|HELL env|
|00003360| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|00003370| 65 2c 0a 20 6f 72 20 65 | 6c 73 65 20 66 72 6f 6d |e,. or e|lse from|
|00003380| 20 53 48 45 4c 4c 20 69 | 66 20 74 68 65 72 65 20 | SHELL i|f there |
|00003390| 69 73 20 6e 6f 20 45 53 | 48 45 4c 4c 2e 0a 49 66 |is no ES|HELL..If|
|000033a0| 20 61 20 66 69 6c 65 20 | 60 7e 2f 2e 65 6d 61 63 | a file |`~/.emac|
|000033b0| 73 5f 53 48 45 4c 4c 4e | 41 4d 45 27 20 65 78 69 |s_SHELLN|AME' exi|
|000033c0| 73 74 73 2c 20 69 74 20 | 69 73 20 67 69 76 65 6e |sts, it |is given|
|000033d0| 20 61 73 20 69 6e 69 74 | 69 61 6c 20 69 6e 70 75 | as init|ial inpu|
|000033e0| 74 0a 20 28 4e 6f 74 65 | 20 74 68 61 74 20 74 68 |t. (Note| that th|
|000033f0| 69 73 20 6d 61 79 20 6c | 6f 73 65 20 64 75 65 20 |is may l|ose due |
|00003400| 74 6f 20 61 20 74 69 6d | 69 6e 67 20 65 72 72 6f |to a tim|ing erro|
|00003410| 72 20 69 66 20 74 68 65 | 20 73 68 65 6c 6c 0a 20 |r if the| shell. |
|00003420| 20 64 69 73 63 61 72 64 | 73 20 69 6e 70 75 74 20 | discard|s input |
|00003430| 77 68 65 6e 20 69 74 20 | 73 74 61 72 74 73 20 75 |when it |starts u|
|00003440| 70 2e 29 0a 54 68 65 20 | 62 75 66 66 65 72 20 69 |p.).The |buffer i|
|00003450| 73 20 70 75 74 20 69 6e | 20 53 68 65 6c 6c 20 6d |s put in| Shell m|
|00003460| 6f 64 65 2c 20 67 69 76 | 69 6e 67 20 63 6f 6d 6d |ode, giv|ing comm|
|00003470| 61 6e 64 73 20 66 6f 72 | 20 73 65 6e 64 69 6e 67 |ands for| sending|
|00003480| 20 69 6e 70 75 74 0a 61 | 6e 64 20 63 6f 6e 74 72 | input.a|nd contr|
|00003490| 6f 6c 6c 69 6e 67 20 74 | 68 65 20 73 75 62 6a 6f |olling t|he subjo|
|000034a0| 62 73 20 6f 66 20 74 68 | 65 20 73 68 65 6c 6c 2e |bs of th|e shell.|
|000034b0| 20 20 53 65 65 20 60 73 | 68 65 6c 6c 2d 6d 6f 64 | See `s|hell-mod|
|000034c0| 65 27 2e 0a 53 65 65 20 | 61 6c 73 6f 20 74 68 65 |e'..See |also the|
|000034d0| 20 76 61 72 69 61 62 6c | 65 20 60 73 68 65 6c 6c | variabl|e `shell|
|000034e0| 2d 70 72 6f 6d 70 74 2d | 70 61 74 74 65 72 6e 27 |-prompt-|pattern'|
|000034f0| 2e 0a 0a 54 68 65 20 73 | 68 65 6c 6c 20 66 69 6c |...The s|hell fil|
|00003500| 65 20 6e 61 6d 65 20 28 | 73 61 6e 73 20 64 69 72 |e name (|sans dir|
|00003510| 65 63 74 6f 72 69 65 73 | 29 20 69 73 20 75 73 65 |ectories|) is use|
|00003520| 64 20 74 6f 20 6d 61 6b | 65 20 61 20 73 79 6d 62 |d to mak|e a symb|
|00003530| 6f 6c 20 6e 61 6d 65 0a | 73 75 63 68 20 61 73 20 |ol name.|such as |
|00003540| 60 65 78 70 6c 69 63 69 | 74 2d 63 73 68 2d 61 72 |`explici|t-csh-ar|
|00003550| 67 73 27 2e 20 20 49 66 | 20 74 68 61 74 20 73 79 |gs'. If| that sy|
|00003560| 6d 62 6f 6c 20 69 73 20 | 61 20 76 61 72 69 61 62 |mbol is |a variab|
|00003570| 6c 65 2c 0a 69 74 73 20 | 76 61 6c 75 65 20 69 73 |le,.its |value is|
|00003580| 20 75 73 65 64 20 61 73 | 20 61 20 6c 69 73 74 20 | used as| a list |
|00003590| 6f 66 20 61 72 67 75 6d | 65 6e 74 73 20 77 68 65 |of argum|ents whe|
|000035a0| 6e 20 69 6e 76 6f 6b 69 | 6e 67 20 74 68 65 20 73 |n invoki|ng the s|
|000035b0| 68 65 6c 6c 2e 0a 4f 74 | 68 65 72 77 69 73 65 2c |hell..Ot|herwise,|
|000035c0| 20 6f 6e 65 20 61 72 67 | 75 6d 65 6e 74 20 60 2d | one arg|ument `-|
|000035d0| 69 27 20 69 73 20 70 61 | 73 73 65 64 20 74 6f 20 |i' is pa|ssed to |
|000035e0| 74 68 65 20 73 68 65 6c | 6c 2e 0a 0a 28 54 79 70 |the shel|l...(Typ|
|000035f0| 65 20 5c 5b 64 65 73 63 | 72 69 62 65 2d 6d 6f 64 |e \[desc|ribe-mod|
|00003600| 65 5d 20 69 6e 20 74 68 | 65 20 73 68 65 6c 6c 20 |e] in th|e shell |
|00003610| 62 75 66 66 65 72 20 66 | 6f 72 20 61 20 6c 69 73 |buffer f|or a lis|
|00003620| 74 20 6f 66 20 63 6f 6d | 6d 61 6e 64 73 2e 29 1f |t of com|mands.).|
|00003630| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 73 68 65 6c |.(defali|as 'shel|
|00003640| 6c 20 23 5b 6e 69 6c 20 | 22 c0 09 ab 83 c0 aa 81 |l #[nil |".......|
|00003650| c2 1b 1c 09 ac 85 c5 0c | 21 ac ca 0e 06 ae 8b c7 |........|!.......|
|00003660| c8 21 ae 86 c7 c9 21 ae | 81 ca 1e 0b cc 0e 0b 21 |.!....!.|.......!|
|00003670| 1e 0d ce 0e 0d 50 1e 0f | d0 d1 0e 0d d2 51 21 1e |.....P..|.....Q!.|
|00003680| 13 d4 d5 0b 0e 0b d6 0e | 0f 21 ad 82 0e 0f 0e 13 |........|.!......|
|00003690| ab 8b d7 0e 13 21 ab 85 | 0e 13 4a aa 81 d8 25 71 |.....!..|..J...%q|
|000036a0| 14 d9 20 88 2c da 0c 21 | 88 09 ad 85 db dc c0 21 |.. .,..!|.......!|
|000036b0| 21 2a 87 22 20 5b 22 2a | 73 68 65 6c 6c 2a 22 20 |!*." ["*|shell*" |
|000036c0| 73 68 65 6c 6c 2d 6d 75 | 6c 74 69 70 6c 65 2d 73 |shell-mu|ltiple-s|
|000036d0| 68 65 6c 6c 73 20 22 73 | 68 65 6c 6c 22 20 62 75 |hells "s|hell" bu|
|000036e0| 66 66 65 72 2d 6e 61 6d | 65 20 62 75 66 66 65 72 |ffer-nam|e buffer|
|000036f0| 20 63 6f 6d 69 6e 74 2d | 63 68 65 63 6b 2d 70 72 | comint-|check-pr|
|00003700| 6f 63 20 65 78 70 6c 69 | 63 69 74 2d 73 68 65 6c |oc expli|cit-shel|
|00003710| 6c 2d 66 69 6c 65 2d 6e | 61 6d 65 20 67 65 74 65 |l-file-n|ame gete|
|00003720| 6e 76 20 22 45 53 48 45 | 4c 4c 22 20 22 53 48 45 |nv "ESHE|LL" "SHE|
|00003730| 4c 4c 22 20 22 2f 62 69 | 6e 2f 73 68 22 20 70 72 |LL" "/bi|n/sh" pr|
|00003740| 6f 67 20 66 69 6c 65 2d | 6e 61 6d 65 2d 6e 6f 6e |og file-|name-non|
|00003750| 64 69 72 65 63 74 6f 72 | 79 20 6e 61 6d 65 20 22 |director|y name "|
|00003760| 7e 2f 2e 65 6d 61 63 73 | 5f 22 20 73 74 61 72 74 |~/.emacs|_" start|
|00003770| 66 69 6c 65 20 69 6e 74 | 65 72 6e 2d 73 6f 66 74 |file int|ern-soft|
|00003780| 20 22 65 78 70 6c 69 63 | 69 74 2d 22 20 22 2d 61 | "explic|it-" "-a|
|00003790| 72 67 73 22 20 78 61 72 | 67 73 2d 6e 61 6d 65 20 |rgs" xar|gs-name |
|000037a0| 61 70 70 6c 79 20 6d 61 | 6b 65 2d 63 6f 6d 69 6e |apply ma|ke-comin|
|000037b0| 74 20 66 69 6c 65 2d 65 | 78 69 73 74 73 2d 70 20 |t file-e|xists-p |
|000037c0| 62 6f 75 6e 64 70 20 28 | 22 2d 69 22 29 20 73 68 |boundp (|"-i") sh|
|000037d0| 65 6c 6c 2d 6d 6f 64 65 | 20 70 6f 70 2d 74 6f 2d |ell-mode| pop-to-|
|000037e0| 62 75 66 66 65 72 20 72 | 65 6e 61 6d 65 2d 62 75 |buffer r|ename-bu|
|000037f0| 66 66 65 72 20 67 65 6e | 65 72 61 74 65 2d 6e 65 |ffer gen|erate-ne|
|00003800| 77 2d 62 75 66 66 65 72 | 2d 6e 61 6d 65 5d 20 37 |w-buffer|-name] 7|
|00003810| 20 28 23 24 20 2e 20 31 | 32 38 34 36 29 20 6e 69 | (#$ . 1|2846) ni|
|00003820| 6c 5d 29 0a 23 40 36 35 | 38 20 54 72 61 63 6b 73 |l]).#@65|8 Tracks|
|00003830| 20 63 64 2c 20 70 75 73 | 68 64 20 61 6e 64 20 70 | cd, pus|hd and p|
|00003840| 6f 70 64 20 63 6f 6d 6d | 61 6e 64 73 20 69 73 73 |opd comm|ands iss|
|00003850| 75 65 64 20 74 6f 20 74 | 68 65 20 73 68 65 6c 6c |ued to t|he shell|
|00003860| 2e 0a 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |..This f|unction |
|00003870| 69 73 20 63 61 6c 6c 65 | 64 20 6f 6e 20 65 61 63 |is calle|d on eac|
|00003880| 68 20 69 6e 70 75 74 20 | 70 61 73 73 65 64 20 74 |h input |passed t|
|00003890| 6f 20 74 68 65 20 73 68 | 65 6c 6c 2e 0a 49 74 20 |o the sh|ell..It |
|000038a0| 77 61 74 63 68 65 73 20 | 66 6f 72 20 63 64 2c 20 |watches |for cd, |
|000038b0| 70 75 73 68 64 20 61 6e | 64 20 70 6f 70 64 20 63 |pushd an|d popd c|
|000038c0| 6f 6d 6d 61 6e 64 73 20 | 61 6e 64 20 73 65 74 73 |ommands |and sets|
|000038d0| 20 74 68 65 20 62 75 66 | 66 65 72 27 73 0a 64 65 | the buf|fer's.de|
|000038e0| 66 61 75 6c 74 20 64 69 | 72 65 63 74 6f 72 79 20 |fault di|rectory |
|000038f0| 74 6f 20 74 72 61 63 6b | 20 74 68 65 73 65 20 63 |to track| these c|
|00003900| 6f 6d 6d 61 6e 64 73 2e | 0a 0a 59 6f 75 20 6d 61 |ommands.|..You ma|
|00003910| 79 20 74 6f 67 67 6c 65 | 20 74 68 69 73 20 74 72 |y toggle| this tr|
|00003920| 61 63 6b 69 6e 67 20 6f | 6e 20 61 6e 64 20 6f 66 |acking o|n and of|
|00003930| 66 20 77 69 74 68 20 5c | 5b 73 68 65 6c 6c 2d 64 |f with \|[shell-d|
|00003940| 69 72 74 72 61 63 6b 2d | 74 6f 67 67 6c 65 5d 2e |irtrack-|toggle].|
|00003950| 0a 49 66 20 65 6d 61 63 | 73 20 67 65 74 73 20 63 |.If emac|s gets c|
|00003960| 6f 6e 66 75 73 65 64 2c | 20 79 6f 75 20 63 61 6e |onfused,| you can|
|00003970| 20 72 65 73 79 6e 63 20 | 77 69 74 68 20 74 68 65 | resync |with the|
|00003980| 20 73 68 65 6c 6c 0a 77 | 69 74 68 20 5c 5b 73 68 | shell.w|ith \[sh|
|00003990| 65 6c 6c 2d 72 65 73 79 | 6e 63 2d 64 69 72 73 5d |ell-resy|nc-dirs]|
|000039a0| 2e 0a 0a 53 65 65 20 76 | 61 72 69 61 62 6c 65 73 |...See v|ariables|
|000039b0| 20 60 73 68 65 6c 6c 2d | 63 64 2d 72 65 67 65 78 | `shell-|cd-regex|
|000039c0| 70 27 2c 20 60 73 68 65 | 6c 6c 2d 70 75 73 68 64 |p', `she|ll-pushd|
|000039d0| 2d 72 65 67 65 78 70 27 | 2c 20 61 6e 64 20 60 73 |-regexp'|, and `s|
|000039e0| 68 65 6c 6c 2d 70 6f 70 | 64 2d 72 65 67 65 78 70 |hell-pop|d-regexp|
|000039f0| 27 2c 0a 77 68 69 6c 65 | 20 60 73 68 65 6c 6c 2d |',.while| `shell-|
|00003a00| 70 75 73 68 64 2d 74 6f | 68 6f 6d 65 27 2c 20 60 |pushd-to|home', `|
|00003a10| 73 68 65 6c 6c 2d 70 75 | 73 68 64 2d 64 65 78 74 |shell-pu|shd-dext|
|00003a20| 72 61 63 74 27 20 61 6e | 64 20 60 73 68 65 6c 6c |ract' an|d `shell|
|00003a30| 2d 70 75 73 68 64 2d 64 | 75 6e 69 71 75 65 27 0a |-pushd-d|unique'.|
|00003a40| 63 6f 6e 74 72 6f 6c 20 | 74 68 65 20 62 65 68 61 |control |the beha|
|00003a50| 76 69 6f 72 20 6f 66 20 | 74 68 65 20 72 65 6c 65 |vior of |the rele|
|00003a60| 76 61 6e 74 20 63 6f 6d | 6d 61 6e 64 2e 0a 0a 45 |vant com|mand...E|
|00003a70| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 76 61 72 69 61 |nvironme|nt varia|
|00003a80| 62 6c 65 73 20 61 72 65 | 20 65 78 70 61 6e 64 65 |bles are| expande|
|00003a90| 64 2c 20 73 65 65 20 66 | 75 6e 63 74 69 6f 6e 20 |d, see f|unction |
|00003aa0| 60 73 75 62 73 74 69 74 | 75 74 65 2d 69 6e 2d 66 |`substit|ute-in-f|
|00003ab0| 69 6c 65 2d 6e 61 6d 65 | 27 2e 1f 0a 28 64 65 66 |ile-name|'...(def|
|00003ac0| 61 6c 69 61 73 20 27 73 | 68 65 6c 6c 2d 64 69 72 |alias 's|hell-dir|
|00003ad0| 65 63 74 6f 72 79 2d 74 | 72 61 63 6b 65 72 20 23 |ectory-t|racker #|
|00003ae0| 5b 28 73 74 72 29 20 22 | 08 ad 84 c1 c2 c3 8f 87 |[(str) "|........|
|00003af0| 22 20 5b 73 68 65 6c 6c | 2d 64 69 72 74 72 61 63 |" [shell|-dirtrac|
|00003b00| 6b 70 20 65 72 72 20 28 | 62 79 74 65 2d 63 6f 64 |kp err (|byte-cod|
|00003b10| 65 20 22 c0 c1 5c 6e 5c | 22 88 c3 95 c4 89 89 1d |e "..\n\|".......|
|00003b20| 1e 06 1e 07 1e 08 c0 0e | 09 5c 6e 0e 08 23 ad df |........|.\n..#..|
|00003b30| c3 95 16 07 ca 5c 6e 0e | 08 0e 07 4f c3 89 23 16 |.....\n.|...O..#.|
|00003b40| 06 ca 5c 6e 0e 08 0e 07 | 4f cb 89 23 15 c0 cc 0e |..\n....|O..#....|
|00003b50| 0d ce 51 0e 06 5c 22 ab | 88 cf d0 0d 21 21 88 aa |..Q..\".|....!!..|
|00003b60| a4 c0 cc 0e 11 ce 51 0e | 06 5c 22 ab 88 d2 d0 0d |......Q.|.\".....|
|00003b70| 21 21 88 aa 91 c0 cc 0e | 13 ce 51 0e 06 5c 22 ab |!!......|..Q..\".|
|00003b80| 86 d4 d0 0d 21 21 88 c0 | d5 5c 6e 0e 07 23 88 c3 |....!!..|.\n..#..|
|00003b90| 95 16 08 aa 18 2c 87 22 | 20 5b 73 74 72 69 6e 67 |.....,."| [string|
|00003ba0| 2d 6d 61 74 63 68 20 22 | 5e 5b 3b 20 09 5d 2a 22 |-match "|^[; .]*"|
|00003bb0| 20 73 74 72 20 30 20 6e | 69 6c 20 61 72 67 31 20 | str 0 n|il arg1 |
|00003bc0| 63 6d 64 20 65 6e 64 20 | 73 74 61 72 74 20 73 68 |cmd end |start sh|
|00003bd0| 65 6c 6c 2d 63 6f 6d 6d | 61 6e 64 2d 72 65 67 65 |ell-comm|and-rege|
|00003be0| 78 70 20 63 6f 6d 69 6e | 74 2d 61 72 67 75 6d 65 |xp comin|t-argume|
|00003bf0| 6e 74 73 20 31 20 22 5c | 5c 60 5c 5c 28 22 20 73 |nts 1 "\|\`\\(" s|
|00003c00| 68 65 6c 6c 2d 70 6f 70 | 64 2d 72 65 67 65 78 70 |hell-pop|d-regexp|
|00003c10| 20 22 5c 5c 29 5c 5c 28 | 24 5c 5c 7c 5b 20 09 5d | "\\)\\(|$\\|[ .]|
|00003c20| 5c 5c 29 22 20 73 68 65 | 6c 6c 2d 70 72 6f 63 65 |\\)" she|ll-proce|
|00003c30| 73 73 2d 70 6f 70 64 20 | 73 75 62 73 74 69 74 75 |ss-popd |substitu|
|00003c40| 74 65 2d 69 6e 2d 66 69 | 6c 65 2d 6e 61 6d 65 20 |te-in-fi|le-name |
|00003c50| 73 68 65 6c 6c 2d 70 75 | 73 68 64 2d 72 65 67 65 |shell-pu|shd-rege|
|00003c60| 78 70 20 73 68 65 6c 6c | 2d 70 72 6f 63 65 73 73 |xp shell|-process|
|00003c70| 2d 70 75 73 68 64 20 73 | 68 65 6c 6c 2d 63 64 2d |-pushd s|hell-cd-|
|00003c80| 72 65 67 65 78 70 20 73 | 68 65 6c 6c 2d 70 72 6f |regexp s|hell-pro|
|00003c90| 63 65 73 73 2d 63 64 20 | 22 5b 3b 20 09 5d 2a 22 |cess-cd |"[; .]*"|
|00003ca0| 5d 20 34 29 20 28 28 65 | 72 72 6f 72 20 28 62 79 |] 4) ((e|rror (by|
|00003cb0| 74 65 2d 63 6f 64 65 20 | 22 c0 c1 21 88 c2 0b c4 |te-code |"..!....|
|00003cc0| 5c 22 87 22 20 5b 6d 65 | 73 73 61 67 65 20 6e 69 |\"." [me|ssage ni|
|00003cd0| 6c 20 64 69 73 70 6c 61 | 79 2d 65 72 72 6f 72 20 |l displa|y-error |
|00003ce0| 65 72 72 20 74 5d 20 33 | 29 29 29 5d 20 33 20 28 |err t] 3|)))] 3 (|
|00003cf0| 23 24 20 2e 20 31 34 33 | 37 38 29 5d 29 0a 28 64 |#$ . 143|78)]).(d|
|00003d00| 65 66 61 6c 69 61 73 20 | 27 73 68 65 6c 6c 2d 63 |efalias |'shell-c|
|00003d10| 64 2d 31 20 23 5b 28 64 | 69 72 20 64 69 72 73 74 |d-1 #[(d|ir dirst|
|00003d20| 61 63 6b 29 20 22 08 ab | 86 c1 c2 0b 21 21 14 c5 |ack) "..|....!!..|
|00003d30| c6 c7 8f 87 22 20 5b 73 | 68 65 6c 6c 2d 64 69 72 |...." [s|hell-dir|
|00003d40| 74 72 61 63 6b 70 20 66 | 69 6c 65 2d 6e 61 6d 65 |trackp f|ile-name|
|00003d50| 2d 61 73 2d 64 69 72 65 | 63 74 6f 72 79 20 65 78 |-as-dire|ctory ex|
|00003d60| 70 61 6e 64 2d 66 69 6c | 65 2d 6e 61 6d 65 20 64 |pand-fil|e-name d|
|00003d70| 69 72 20 6c 69 73 74 2d | 62 75 66 66 65 72 73 2d |ir list-|buffers-|
|00003d80| 64 69 72 65 63 74 6f 72 | 79 20 6e 69 6c 20 28 62 |director|y nil (b|
|00003d90| 79 74 65 2d 63 6f 64 65 | 20 22 c0 09 21 ab 88 c2 |yte-code| "..!...|
|00003da0| 0b 09 50 21 88 aa 84 c4 | 09 21 88 0d 16 06 c7 20 |..P!....|.!..... |
|00003db0| 87 22 20 5b 66 69 6c 65 | 2d 6e 61 6d 65 2d 61 62 |." [file|-name-ab|
|00003dc0| 73 6f 6c 75 74 65 2d 70 | 20 64 69 72 20 63 64 2d |solute-p| dir cd-|
|00003dd0| 61 62 73 6f 6c 75 74 65 | 20 63 6f 6d 69 6e 74 2d |absolute| comint-|
|00003de0| 66 69 6c 65 2d 6e 61 6d | 65 2d 70 72 65 66 69 78 |file-nam|e-prefix|
|00003df0| 20 63 64 20 64 69 72 73 | 74 61 63 6b 20 73 68 65 | cd dirs|tack she|
|00003e00| 6c 6c 2d 64 69 72 73 74 | 61 63 6b 20 73 68 65 6c |ll-dirst|ack shel|
|00003e10| 6c 2d 64 69 72 73 74 61 | 63 6b 2d 6d 65 73 73 61 |l-dirsta|ck-messa|
|00003e20| 67 65 5d 20 33 29 20 28 | 28 66 69 6c 65 2d 65 72 |ge] 3) (|(file-er|
|00003e30| 72 6f 72 20 28 6d 65 73 | 73 61 67 65 20 22 43 6f |ror (mes|sage "Co|
|00003e40| 75 6c 64 6e 27 74 20 63 | 64 2e 22 29 29 29 5d 20 |uldn't c|d.")))] |
|00003e50| 33 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 |3]).(def|alias 's|
|00003e60| 68 65 6c 6c 2d 70 72 6f | 63 65 73 73 2d 70 6f 70 |hell-pro|cess-pop|
|00003e70| 64 20 23 5b 28 61 72 67 | 29 20 22 c0 09 21 ae 81 |d #[(arg|) "..!..|
|00003e80| c2 89 1b ab 90 0b c2 55 | ab 8b 0c ab 88 c5 0c 40 |.......U|.......@|
|00003e90| 0c 41 5c 22 aa ac 0b ab | a6 0b c2 56 ab a1 0b 0c |.A\"....|...V....|
|00003ea0| 47 58 ab 9b c6 0c 42 1e | 07 0b 53 0e 07 9b 89 1e |GX....B.|..S.....|
|00003eb0| 08 89 41 41 a1 88 0e 07 | 41 14 c9 20 2a aa 83 ca |..AA....|A.. *...|
|00003ec0| cb 21 29 87 22 20 5b 73 | 68 65 6c 6c 2d 65 78 74 |.!)." [s|hell-ext|
|00003ed0| 72 61 63 74 2d 6e 75 6d | 20 61 72 67 20 30 20 6e |ract-num| arg 0 n|
|00003ee0| 75 6d 20 73 68 65 6c 6c | 2d 64 69 72 73 74 61 63 |um shell|-dirstac|
|00003ef0| 6b 20 73 68 65 6c 6c 2d | 63 64 2d 31 20 6e 69 6c |k shell-|cd-1 nil|
|00003f00| 20 64 73 20 63 65 6c 6c | 20 73 68 65 6c 6c 2d 64 | ds cell| shell-d|
|00003f10| 69 72 73 74 61 63 6b 2d | 6d 65 73 73 61 67 65 20 |irstack-|message |
|00003f20| 65 72 72 6f 72 20 22 43 | 6f 75 6c 64 6e 27 74 20 |error "C|ouldn't |
|00003f30| 70 6f 70 64 22 5d 20 34 | 5d 29 0a 28 64 65 66 61 |popd"] 4|]).(defa|
|00003f40| 6c 69 61 73 20 27 73 68 | 65 6c 6c 2d 70 72 65 66 |lias 'sh|ell-pref|
|00003f50| 69 78 65 64 2d 64 69 72 | 65 63 74 6f 72 79 2d 6e |ixed-dir|ectory-n|
|00003f60| 61 6d 65 20 23 5b 28 64 | 69 72 29 20 22 08 47 c1 |ame #[(d|ir) ".G.|
|00003f70| 55 ab 82 5c 6e 87 c3 5c | 6e 21 ab 84 08 5c 6e 50 |U..\n..\|n!...\nP|
|00003f80| 87 c4 5c 6e 21 87 22 20 | 5b 63 6f 6d 69 6e 74 2d |..\n!." |[comint-|
|00003f90| 66 69 6c 65 2d 6e 61 6d | 65 2d 70 72 65 66 69 78 |file-nam|e-prefix|
|00003fa0| 20 30 20 64 69 72 20 66 | 69 6c 65 2d 6e 61 6d 65 | 0 dir f|ile-name|
|00003fb0| 2d 61 62 73 6f 6c 75 74 | 65 2d 70 20 65 78 70 61 |-absolut|e-p expa|
|00003fc0| 6e 64 2d 66 69 6c 65 2d | 6e 61 6d 65 5d 20 32 5d |nd-file-|name] 2]|
|00003fd0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 68 65 |).(defal|ias 'she|
|00003fe0| 6c 6c 2d 70 72 6f 63 65 | 73 73 2d 63 64 20 23 5b |ll-proce|ss-cd #[|
|00003ff0| 28 61 72 67 29 20 22 08 | 47 c1 55 ab 85 5c 6e c3 |(arg) ".|G.U..\n.|
|00004000| 50 aa 8b 08 c4 98 ab 83 | 0d aa 83 c6 08 21 1e 07 |P.......|.....!..|
|00004010| 0e 08 15 c9 0e 07 0e 5c | 6e 5c 22 29 87 22 20 5b |.......\|n\")." [|
|00004020| 61 72 67 20 30 20 63 6f | 6d 69 6e 74 2d 66 69 6c |arg 0 co|mint-fil|
|00004030| 65 2d 6e 61 6d 65 2d 70 | 72 65 66 69 78 20 22 7e |e-name-p|refix "~|
|00004040| 22 20 22 2d 22 20 73 68 | 65 6c 6c 2d 6c 61 73 74 |" "-" sh|ell-last|
|00004050| 2d 64 69 72 20 73 68 65 | 6c 6c 2d 70 72 65 66 69 |-dir she|ll-prefi|
|00004060| 78 65 64 2d 64 69 72 65 | 63 74 6f 72 79 2d 6e 61 |xed-dire|ctory-na|
|00004070| 6d 65 20 6e 65 77 2d 64 | 69 72 20 64 65 66 61 75 |me new-d|ir defau|
|00004080| 6c 74 2d 64 69 72 65 63 | 74 6f 72 79 20 73 68 65 |lt-direc|tory she|
|00004090| 6c 6c 2d 63 64 2d 31 20 | 73 68 65 6c 6c 2d 64 69 |ll-cd-1 |shell-di|
|000040a0| 72 73 74 61 63 6b 5d 20 | 33 5d 29 0a 28 64 65 66 |rstack] |3]).(def|
|000040b0| 61 6c 69 61 73 20 27 73 | 68 65 6c 6c 2d 70 72 6f |alias 's|hell-pro|
|000040c0| 63 65 73 73 2d 70 75 73 | 68 64 20 23 5b 28 61 72 |cess-pus|hd #[(ar|
|000040d0| 67 29 20 22 c0 09 21 1a | 09 47 c3 55 ab a9 0c ab |g) "..!.|.G.U....|
|000040e0| 89 c5 0e 06 c7 50 21 82 | bb 00 0e 08 ab 93 0e 09 |.....P!.|........|
|000040f0| 1e 5c 6e cb 0e 08 40 0e | 5c 6e 0e 08 41 42 5c 22 |.\n...@.|\n..AB\"|
|00004100| 29 82 bb 00 cc cd 21 82 | bb 00 5c 6e a7 ab e6 5c |).....!.|..\n...\|
|00004110| 6e 0e 08 47 56 ab 85 cc | ce 21 aa f8 5c 6e c3 55 |n..GV...|.!..\n.U|
|00004120| ab 87 cf cc d0 21 21 aa | ec 0e 11 ab 99 5c 6e 53 |.....!!.|.....\nS|
|00004130| 0e 08 38 1e 12 d3 09 21 | 88 c5 0e 09 21 88 cb 0e |..8....!|....!...|
|00004140| 12 0e 08 5c 22 29 aa cf | 0e 09 0e 08 42 89 1e 14 |...\")..|....B...|
|00004150| 47 1e 15 5c 6e 0e 14 9b | 1e 16 d7 0e 15 5c 6e 5a |G..\n...|.....\nZ|
|00004160| d7 0e 14 21 9b 21 1e 18 | d9 0e 16 0e 18 5c 22 1e |...!.!..|.....\".|
|00004170| 1a cb 0e 1a 40 0e 1a 41 | 5c 22 2d aa 9e 0e 09 1e |....@..A|\"-.....|
|00004180| 1b cb dc 09 21 0e 1d ab | 87 0e 1b 0e 08 b6 ac 87 |....!...|........|
|00004190| 0e 1b 0e 08 42 aa 82 0e | 08 5c 22 29 29 87 22 20 |....B...|.\"))." |
|000041a0| 5b 73 68 65 6c 6c 2d 65 | 78 74 72 61 63 74 2d 6e |[shell-e|xtract-n|
|000041b0| 75 6d 20 61 72 67 20 6e | 75 6d 20 30 20 73 68 65 |um arg n|um 0 she|
|000041c0| 6c 6c 2d 70 75 73 68 64 | 2d 74 6f 68 6f 6d 65 20 |ll-pushd|-tohome |
|000041d0| 73 68 65 6c 6c 2d 70 72 | 6f 63 65 73 73 2d 70 75 |shell-pr|ocess-pu|
|000041e0| 73 68 64 20 63 6f 6d 69 | 6e 74 2d 66 69 6c 65 2d |shd comi|nt-file-|
|000041f0| 6e 61 6d 65 2d 70 72 65 | 66 69 78 20 22 7e 22 20 |name-pre|fix "~" |
|00004200| 73 68 65 6c 6c 2d 64 69 | 72 73 74 61 63 6b 20 64 |shell-di|rstack d|
|00004210| 65 66 61 75 6c 74 2d 64 | 69 72 65 63 74 6f 72 79 |efault-d|irectory|
|00004220| 20 6f 6c 64 20 73 68 65 | 6c 6c 2d 63 64 2d 31 20 | old she|ll-cd-1 |
|00004230| 6d 65 73 73 61 67 65 20 | 22 44 69 72 65 63 74 6f |message |"Directo|
|00004240| 72 79 20 73 74 61 63 6b | 20 65 6d 70 74 79 2e 22 |ry stack| empty."|
|00004250| 20 22 44 69 72 65 63 74 | 6f 72 79 20 73 74 61 63 | "Direct|ory stac|
|00004260| 6b 20 6e 6f 74 20 74 68 | 61 74 20 64 65 65 70 2e |k not th|at deep.|
|00004270| 22 20 65 72 72 6f 72 20 | 22 43 6f 75 6c 64 6e 27 |" error |"Couldn'|
|00004280| 74 20 63 64 2e 22 20 73 | 68 65 6c 6c 2d 70 75 73 |t cd." s|hell-pus|
|00004290| 68 64 2d 64 65 78 74 72 | 61 63 74 20 64 69 72 20 |hd-dextr|act dir |
|000042a0| 73 68 65 6c 6c 2d 70 72 | 6f 63 65 73 73 2d 70 6f |shell-pr|ocess-po|
|000042b0| 70 64 20 64 73 20 64 73 | 6c 65 6e 20 66 72 6f 6e |pd ds ds|len fron|
|000042c0| 74 20 72 65 76 65 72 73 | 65 20 62 61 63 6b 20 61 |t revers|e back a|
|000042d0| 70 70 65 6e 64 20 6e 65 | 77 2d 64 73 20 6f 6c 64 |ppend ne|w-ds old|
|000042e0| 2d 77 64 20 73 68 65 6c | 6c 2d 70 72 65 66 69 78 |-wd shel|l-prefix|
|000042f0| 65 64 2d 64 69 72 65 63 | 74 6f 72 79 2d 6e 61 6d |ed-direc|tory-nam|
|00004300| 65 20 73 68 65 6c 6c 2d | 70 75 73 68 64 2d 64 75 |e shell-|pushd-du|
|00004310| 6e 69 71 75 65 5d 20 35 | 5d 29 0a 28 64 65 66 61 |nique] 5|]).(defa|
|00004320| 6c 69 61 73 20 27 73 68 | 65 6c 6c 2d 65 78 74 72 |lias 'sh|ell-extr|
|00004330| 61 63 74 2d 6e 75 6d 20 | 23 5b 28 73 74 72 29 20 |act-num |#[(str) |
|00004340| 22 c0 c1 5c 6e 5c 22 ad | 83 c3 5c 6e 21 87 22 20 |"..\n\".|..\n!." |
|00004350| 5b 73 74 72 69 6e 67 2d | 6d 61 74 63 68 20 22 5e |[string-|match "^|
|00004360| 5c 5c 2b 5b 31 2d 39 5d | 5b 30 2d 39 5d 2a 24 22 |\\+[1-9]|[0-9]*$"|
|00004370| 20 73 74 72 20 73 74 72 | 69 6e 67 2d 74 6f 2d 69 | str str|ing-to-i|
|00004380| 6e 74 5d 20 33 5d 29 0a | 23 40 35 35 20 54 75 72 |nt] 3]).|#@55 Tur|
|00004390| 6e 20 64 69 72 65 63 74 | 6f 72 79 20 74 72 61 63 |n direct|ory trac|
|000043a0| 6b 69 6e 67 20 6f 6e 20 | 61 6e 64 20 6f 66 66 20 |king on |and off |
|000043b0| 69 6e 20 61 20 73 68 65 | 6c 6c 20 62 75 66 66 65 |in a she|ll buffe|
|000043c0| 72 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 |r...(def|alias 's|
|000043d0| 68 65 6c 6c 2d 64 69 72 | 74 72 61 63 6b 2d 74 6f |hell-dir|track-to|
|000043e0| 67 67 6c 65 20 23 5b 6e | 69 6c 20 22 08 3f 89 10 |ggle #[n|il ".?..|
|000043f0| ab 84 09 12 aa 82 c3 12 | c4 c5 08 ab 83 c6 aa 81 |........|........|
|00004400| c7 5c 22 87 22 20 5b 73 | 68 65 6c 6c 2d 64 69 72 |.\"." [s|hell-dir|
|00004410| 74 72 61 63 6b 70 20 64 | 65 66 61 75 6c 74 2d 64 |trackp d|efault-d|
|00004420| 69 72 65 63 74 6f 72 79 | 20 6c 69 73 74 2d 62 75 |irectory| list-bu|
|00004430| 66 66 65 72 73 2d 64 69 | 72 65 63 74 6f 72 79 20 |ffers-di|rectory |
|00004440| 6e 69 6c 20 6d 65 73 73 | 61 67 65 20 22 44 69 72 |nil mess|age "Dir|
|00004450| 65 63 74 6f 72 79 20 74 | 72 61 63 6b 69 6e 67 20 |ectory t|racking |
|00004460| 25 73 22 20 22 4f 4e 22 | 20 22 4f 46 46 22 5d 20 |%s" "ON"| "OFF"] |
|00004470| 33 20 28 23 24 20 2e 20 | 31 37 32 39 33 29 20 6e |3 (#$ . |17293) n|
|00004480| 69 6c 5d 29 0a 23 40 35 | 38 20 44 6f 20 6e 6f 72 |il]).#@5|8 Do nor|
|00004490| 6d 61 6c 20 60 63 64 27 | 20 74 6f 20 44 49 52 2c |mal `cd'| to DIR,|
|000044a0| 20 61 6e 64 20 73 65 74 | 20 60 6c 69 73 74 2d 62 | and set| `list-b|
|000044b0| 75 66 66 65 72 73 2d 64 | 69 72 65 63 74 6f 72 79 |uffers-d|irectory|
|000044c0| 27 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 |'...(def|alias 's|
|000044d0| 68 65 6c 6c 2d 63 64 20 | 23 5b 28 64 69 72 29 20 |hell-cd |#[(dir) |
|000044e0| 22 08 ab 86 c1 c2 0b 21 | 21 14 c5 0b 21 87 22 20 |"......!|!...!." |
|000044f0| 5b 73 68 65 6c 6c 2d 64 | 69 72 74 72 61 63 6b 70 |[shell-d|irtrackp|
|00004500| 20 66 69 6c 65 2d 6e 61 | 6d 65 2d 61 73 2d 64 69 | file-na|me-as-di|
|00004510| 72 65 63 74 6f 72 79 20 | 65 78 70 61 6e 64 2d 66 |rectory |expand-f|
|00004520| 69 6c 65 2d 6e 61 6d 65 | 20 64 69 72 20 6c 69 73 |ile-name| dir lis|
|00004530| 74 2d 62 75 66 66 65 72 | 73 2d 64 69 72 65 63 74 |t-buffer|s-direct|
|00004540| 6f 72 79 20 63 64 5d 20 | 33 20 28 23 24 20 2e 20 |ory cd] |3 (#$ . |
|00004550| 31 37 35 34 36 29 5d 29 | 0a 23 40 34 39 36 20 52 |17546)])|.#@496 R|
|00004560| 65 73 79 6e 63 20 74 68 | 65 20 62 75 66 66 65 72 |esync th|e buffer|
|00004570| 27 73 20 69 64 65 61 20 | 6f 66 20 74 68 65 20 63 |'s idea |of the c|
|00004580| 75 72 72 65 6e 74 20 64 | 69 72 65 63 74 6f 72 79 |urrent d|irectory|
|00004590| 20 73 74 61 63 6b 2e 0a | 54 68 69 73 20 63 6f 6d | stack..|This com|
|000045a0| 6d 61 6e 64 20 71 75 65 | 72 69 65 73 20 74 68 65 |mand que|ries the|
|000045b0| 20 73 68 65 6c 6c 20 77 | 69 74 68 20 74 68 65 20 | shell w|ith the |
|000045c0| 63 6f 6d 6d 61 6e 64 20 | 62 6f 75 6e 64 20 74 6f |command |bound to|
|000045d0| 20 0a 60 73 68 65 6c 6c | 2d 64 69 72 73 74 61 63 | .`shell|-dirstac|
|000045e0| 6b 2d 71 75 65 72 79 27 | 20 28 64 65 66 61 75 6c |k-query'| (defaul|
|000045f0| 74 20 22 64 69 72 73 22 | 29 2c 20 72 65 61 64 73 |t "dirs"|), reads|
|00004600| 20 74 68 65 20 6e 65 78 | 74 0a 6c 69 6e 65 20 6f | the nex|t.line o|
|00004610| 75 74 70 75 74 20 61 6e | 64 20 70 61 72 73 65 73 |utput an|d parses|
|00004620| 20 69 74 20 74 6f 20 66 | 6f 72 6d 20 74 68 65 20 | it to f|orm the |
|00004630| 6e 65 77 20 64 69 72 65 | 63 74 6f 72 79 20 73 74 |new dire|ctory st|
|00004640| 61 63 6b 2e 0a 44 4f 4e | 27 54 20 69 73 73 75 65 |ack..DON|'T issue|
|00004650| 20 74 68 69 73 20 63 6f | 6d 6d 61 6e 64 20 75 6e | this co|mmand un|
|00004660| 6c 65 73 73 20 74 68 65 | 20 62 75 66 66 65 72 20 |less the| buffer |
|00004670| 69 73 20 61 74 20 61 20 | 73 68 65 6c 6c 20 70 72 |is at a |shell pr|
|00004680| 6f 6d 70 74 2e 0a 41 6c | 73 6f 2c 20 6e 6f 74 65 |ompt..Al|so, note|
|00004690| 20 74 68 61 74 20 69 66 | 20 73 6f 6d 65 20 6f 74 | that if| some ot|
|000046a0| 68 65 72 20 73 75 62 70 | 72 6f 63 65 73 73 20 64 |her subp|rocess d|
|000046b0| 65 63 69 64 65 73 20 74 | 6f 20 64 6f 20 6f 75 74 |ecides t|o do out|
|000046c0| 70 75 74 0a 69 6d 6d 65 | 64 69 61 74 65 6c 79 20 |put.imme|diately |
|000046d0| 61 66 74 65 72 20 74 68 | 65 20 71 75 65 72 79 2c |after th|e query,|
|000046e0| 20 69 74 73 20 6f 75 74 | 70 75 74 20 77 69 6c 6c | its out|put will|
|000046f0| 20 62 65 20 74 61 6b 65 | 6e 20 61 73 20 74 68 65 | be take|n as the|
|00004700| 0a 6e 65 77 20 64 69 72 | 65 63 74 6f 72 79 20 73 |.new dir|ectory s|
|00004710| 74 61 63 6b 20 2d 2d 20 | 79 6f 75 20 6c 6f 73 65 |tack -- |you lose|
|00004720| 2e 20 49 66 20 74 68 69 | 73 20 68 61 70 70 65 6e |. If thi|s happen|
|00004730| 73 2c 20 6a 75 73 74 20 | 64 6f 20 74 68 65 0a 63 |s, just |do the.c|
|00004740| 6f 6d 6d 61 6e 64 20 61 | 67 61 69 6e 2e 1f 0a 28 |ommand a|gain...(|
|00004750| 64 65 66 61 6c 69 61 73 | 20 27 73 68 65 6c 6c 2d |defalias| 'shell-|
|00004760| 72 65 73 79 6e 63 2d 64 | 69 72 73 20 23 5b 6e 69 |resync-d|irs #[ni|
|00004770| 6c 20 22 c0 70 21 19 c2 | 09 21 89 1b 62 88 0c 63 |l ".p!..|.!..b..c|
|00004780| 88 c5 63 88 c6 c7 21 88 | c8 09 0c 5c 22 88 c8 09 |..c...!.|...\"...|
|00004790| c5 5c 22 88 0b 60 c9 93 | 88 60 1e 5c 6e c5 63 88 |.\"..`..|.`.\n.c.|
|000047a0| cb cc 21 88 cd ce 21 ac | 94 cf 09 21 88 0e 5c 6e |..!...!.|...!..\n|
|000047b0| 62 88 cd d0 21 ab 6e 60 | c7 95 7c 88 aa 67 29 0b |b...!.n`|..|..g).|
|000047c0| 62 88 d1 cc 21 88 c7 94 | c7 95 53 7b 89 1e 12 47 |b...!...|..S{...G|
|000047d0| 1e 13 c9 1e 14 c7 1e 15 | c7 0e 13 57 ab 9e d6 d7 |........|...W....|
|000047e0| 0e 12 0e 15 23 88 0e 18 | 0e 12 cc 94 cc 95 4f 50 |....#...|......OP|
|000047f0| 0e 14 42 16 14 c7 95 89 | 16 15 aa 5d d9 0e 14 21 |..B.....|...]...!|
|00004800| 1e 14 da 0e 14 40 0e 14 | 41 5c 22 2e 07 87 22 20 |.....@..|A\"..." |
|00004810| 5b 67 65 74 2d 62 75 66 | 66 65 72 2d 70 72 6f 63 |[get-buf|fer-proc|
|00004820| 65 73 73 20 70 72 6f 63 | 20 70 72 6f 63 65 73 73 |ess proc| process|
|00004830| 2d 6d 61 72 6b 20 70 6d | 61 72 6b 20 73 68 65 6c |-mark pm|ark shel|
|00004840| 6c 2d 64 69 72 73 74 61 | 63 6b 2d 71 75 65 72 79 |l-dirsta|ck-query|
|00004850| 20 22 5c 6e 22 20 73 69 | 74 2d 66 6f 72 20 30 20 | "\n" si|t-for 0 |
|00004860| 63 6f 6d 69 6e 74 2d 73 | 65 6e 64 2d 73 74 72 69 |comint-s|end-stri|
|00004870| 6e 67 20 6e 69 6c 20 70 | 74 20 62 61 63 6b 77 61 |ng nil p|t backwa|
|00004880| 72 64 2d 63 68 61 72 20 | 31 20 6c 6f 6f 6b 69 6e |rd-char |1 lookin|
|00004890| 67 2d 61 74 20 22 2e 2b | 5c 6e 22 20 61 63 63 65 |g-at ".+|\n" acce|
|000048a0| 70 74 2d 70 72 6f 63 65 | 73 73 2d 6f 75 74 70 75 |pt-proce|ss-outpu|
|000048b0| 74 20 22 5e 64 69 72 73 | 0d 3f 5c 6e 22 20 64 65 |t "^dirs|.?\n" de|
|000048c0| 6c 65 74 65 2d 63 68 61 | 72 20 64 6c 20 64 6c 2d |lete-cha|r dl dl-|
|000048d0| 6c 65 6e 20 64 73 20 69 | 20 73 74 72 69 6e 67 2d |len ds i| string-|
|000048e0| 6d 61 74 63 68 20 22 5c | 5c 73 20 2a 5c 5c 28 5c |match "\|\s *\\(\|
|000048f0| 5c 53 20 2b 5c 5c 29 5c | 5c 73 20 2a 22 20 63 6f |\S +\\)\|\s *" co|
|00004900| 6d 69 6e 74 2d 66 69 6c | 65 2d 6e 61 6d 65 2d 70 |mint-fil|e-name-p|
|00004910| 72 65 66 69 78 20 72 65 | 76 65 72 73 65 20 73 68 |refix re|verse sh|
|00004920| 65 6c 6c 2d 63 64 2d 31 | 5d 20 35 20 28 23 24 20 |ell-cd-1|] 5 (#$ |
|00004930| 2e 20 31 37 37 35 39 29 | 20 6e 69 6c 5d 29 0a 23 |. 17759)| nil]).#|
|00004940| 40 34 35 20 48 6f 6f 6b | 20 74 6f 20 72 75 6e 20 |@45 Hook| to run |
|00004950| 61 66 74 65 72 20 61 20 | 63 64 2c 20 70 75 73 68 |after a |cd, push|
|00004960| 64 20 6f 72 20 70 6f 70 | 64 20 65 76 65 6e 74 1f |d or pop|d event.|
|00004970| 0a 28 64 65 66 76 61 72 | 20 73 68 65 6c 6c 2d 64 |.(defvar| shell-d|
|00004980| 69 72 73 74 61 63 6b 2d | 6d 65 73 73 61 67 65 2d |irstack-|message-|
|00004990| 68 6f 6f 6b 20 6e 69 6c | 20 28 23 24 20 2e 20 31 |hook nil| (#$ . 1|
|000049a0| 38 37 35 36 29 29 0a 28 | 64 65 66 61 6c 69 61 73 |8756)).(|defalias|
|000049b0| 20 27 73 68 65 6c 6c 2d | 64 69 72 73 74 61 63 6b | 'shell-|dirstack|
|000049c0| 2d 6d 65 73 73 61 67 65 | 20 23 5b 6e 69 6c 20 22 |-message| #[nil "|
|000049d0| c0 19 5c 6e 0b 42 1c c5 | c6 c7 c8 c9 21 21 5c 22 |..\n.B..|....!!\"|
|000049e0| 1e 5c 6e 0e 0b ad 8f 0e | 0b 47 cc 55 3f ad 87 c5 |.\n.....|.G.U?...|
|000049f0| c6 c7 0e 0b 21 5c 22 1e | 0d 0c ab be 0c 40 1e 0e |....!\".|.....@..|
|00004a00| cf 0e 5c 6e 0e 0e 5c 22 | ab 8a d0 0e 0e cc 95 d1 |..\n..\"|........|
|00004a10| 4f 50 16 0e 0e 0d ab 98 | cf 0e 0d 0e 0e 5c 22 ab |OP......|.....\".|
|00004a20| 90 0e 0e cc 95 d1 4f 89 | 16 0e ab 85 0c 0e 0e a0 |......O.|........|
|00004a30| 88 09 0e 0e d2 51 11 0c | 41 14 29 aa 3f d3 d4 21 |.....Q..|A.).?..!|
|00004a40| 88 d5 09 21 2c 87 22 20 | 5b 22 22 20 6d 73 67 20 |...!,." |["" msg |
|00004a50| 64 65 66 61 75 6c 74 2d | 64 69 72 65 63 74 6f 72 |default-|director|
|00004a60| 79 20 73 68 65 6c 6c 2d | 64 69 72 73 74 61 63 6b |y shell-|dirstack|
|00004a70| 20 64 73 20 66 6f 72 6d | 61 74 20 22 5e 25 73 5c | ds form|at "^%s\|
|00004a80| 5c 28 2f 5c 5c 7c 24 5c | 5c 29 22 20 72 65 67 65 |\(/\\|$\|\)" rege|
|00004a90| 78 70 2d 71 75 6f 74 65 | 20 67 65 74 65 6e 76 20 |xp-quote| getenv |
|00004aa0| 22 48 4f 4d 45 22 20 68 | 6f 6d 65 20 63 6f 6d 69 |"HOME" h|ome comi|
|00004ab0| 6e 74 2d 66 69 6c 65 2d | 6e 61 6d 65 2d 70 72 65 |nt-file-|name-pre|
|00004ac0| 66 69 78 20 30 20 70 72 | 65 66 69 78 20 64 69 72 |fix 0 pr|efix dir|
|00004ad0| 20 73 74 72 69 6e 67 2d | 6d 61 74 63 68 20 22 7e | string-|match "~|
|00004ae0| 2f 22 20 6e 69 6c 20 22 | 20 22 20 72 75 6e 2d 68 |/" nil "| " run-h|
|00004af0| 6f 6f 6b 73 20 73 68 65 | 6c 6c 2d 64 69 72 73 74 |ooks she|ll-dirst|
|00004b00| 61 63 6b 2d 6d 65 73 73 | 61 67 65 2d 68 6f 6f 6b |ack-mess|age-hook|
|00004b10| 20 6d 65 73 73 61 67 65 | 5d 20 35 5d 29 0a 23 40 | message|] 5]).#@|
|00004b20| 39 34 20 4d 6f 76 65 20 | 66 6f 72 77 61 72 64 20 |94 Move |forward |
|00004b30| 61 63 72 6f 73 73 20 41 | 52 47 20 73 68 65 6c 6c |across A|RG shell|
|00004b40| 20 63 6f 6d 6d 61 6e 64 | 28 73 29 2e 20 20 44 6f | command|(s). Do|
|00004b50| 65 73 20 6e 6f 74 20 63 | 72 6f 73 73 20 6c 69 6e |es not c|ross lin|
|00004b60| 65 73 2e 0a 53 65 65 20 | 60 73 68 65 6c 6c 2d 63 |es..See |`shell-c|
|00004b70| 6f 6d 6d 61 6e 64 2d 72 | 65 67 65 78 70 27 2e 1f |ommand-r|egexp'..|
|00004b80| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 73 68 65 6c |.(defali|as 'shel|
|00004b90| 6c 2d 66 6f 72 77 61 72 | 64 2d 63 6f 6d 6d 61 6e |l-forwar|d-comman|
|00004ba0| 64 20 23 5b 28 26 6f 70 | 74 69 6f 6e 61 6c 20 61 |d #[(&op|tional a|
|00004bb0| 72 67 29 20 22 8a c0 7f | 88 60 29 19 c2 0b c4 50 |rg) "...|.`)....P|
|00004bc0| 09 c5 0e 06 24 ad 83 c7 | c8 21 29 87 22 20 5b 6e |....$...|.!)." [n|
|00004bd0| 69 6c 20 6c 69 6d 69 74 | 20 72 65 2d 73 65 61 72 |il limit| re-sear|
|00004be0| 63 68 2d 66 6f 72 77 61 | 72 64 20 73 68 65 6c 6c |ch-forwa|rd shell|
|00004bf0| 2d 63 6f 6d 6d 61 6e 64 | 2d 72 65 67 65 78 70 20 |-command|-regexp |
|00004c00| 22 5c 5c 28 5b 3b 26 7c | 5d 5b 09 20 5d 2a 5c 5c |"\\([;&||][. ]*\\|
|00004c10| 29 2b 22 20 6d 6f 76 65 | 20 61 72 67 20 73 6b 69 |)+" move| arg ski|
|00004c20| 70 2d 73 79 6e 74 61 78 | 2d 62 61 63 6b 77 61 72 |p-syntax|-backwar|
|00004c30| 64 20 22 20 22 5d 20 35 | 20 28 23 24 20 2e 20 31 |d " "] 5| (#$ . 1|
|00004c40| 39 32 33 35 29 20 22 70 | 22 5d 29 0a 23 40 39 35 |9235) "p|"]).#@95|
|00004c50| 20 4d 6f 76 65 20 62 61 | 63 6b 77 61 72 64 20 61 | Move ba|ckward a|
|00004c60| 63 72 6f 73 73 20 41 52 | 47 20 73 68 65 6c 6c 20 |cross AR|G shell |
|00004c70| 63 6f 6d 6d 61 6e 64 28 | 73 29 2e 20 20 44 6f 65 |command(|s). Doe|
|00004c80| 73 20 6e 6f 74 20 63 72 | 6f 73 73 20 6c 69 6e 65 |s not cr|oss line|
|00004c90| 73 2e 0a 53 65 65 20 60 | 73 68 65 6c 6c 2d 63 6f |s..See `|shell-co|
|00004ca0| 6d 6d 61 6e 64 2d 72 65 | 67 65 78 70 27 2e 1f 0a |mmand-re|gexp'...|
|00004cb0| 28 64 65 66 61 6c 69 61 | 73 20 27 73 68 65 6c 6c |(defalia|s 'shell|
|00004cc0| 2d 62 61 63 6b 77 61 72 | 64 2d 63 6f 6d 6d 61 6e |-backwar|d-comman|
|00004cd0| 64 20 23 5b 28 26 6f 70 | 74 69 6f 6e 61 6c 20 61 |d #[(&op|tional a|
|00004ce0| 72 67 29 20 22 8a c0 c1 | 21 88 60 29 89 1a 60 56 |rg) "...|!.`)..`V|
|00004cf0| ab 87 8a c3 79 88 60 12 | 29 c4 c5 5c 6e 5c 22 88 |....y.`.|)..\n\".|
|00004d00| c6 c7 c8 0e 09 5c 22 5c | 6e ca 0e 0b 24 ad 87 cc |.....\"\|n...$...|
|00004d10| 94 62 88 cd c1 77 29 87 | 22 20 5b 63 6f 6d 69 6e |.b...w).|" [comin|
|00004d20| 74 2d 62 6f 6c 20 6e 69 | 6c 20 6c 69 6d 69 74 20 |t-bol ni|l limit |
|00004d30| 30 20 73 6b 69 70 2d 73 | 79 6e 74 61 78 2d 62 61 |0 skip-s|yntax-ba|
|00004d40| 63 6b 77 61 72 64 20 22 | 20 22 20 72 65 2d 73 65 |ckward "| " re-se|
|00004d50| 61 72 63 68 2d 62 61 63 | 6b 77 61 72 64 20 66 6f |arch-bac|kward fo|
|00004d60| 72 6d 61 74 20 22 5b 3b | 26 7c 5d 2b 5b 09 20 5d |rmat "[;|&|]+[. ]|
|00004d70| 2a 5c 5c 28 25 73 5c 5c | 29 22 20 73 68 65 6c 6c |*\\(%s\\|)" shell|
|00004d80| 2d 63 6f 6d 6d 61 6e 64 | 2d 72 65 67 65 78 70 20 |-command|-regexp |
|00004d90| 6d 6f 76 65 20 61 72 67 | 20 31 20 22 3b 26 7c 22 |move arg| 1 ";&|"|
|00004da0| 5d 20 36 20 28 23 24 20 | 2e 20 31 39 35 33 37 29 |] 6 (#$ |. 19537)|
|00004db0| 20 22 70 22 5d 29 0a 23 | 40 34 35 38 20 44 79 6e | "p"]).#|@458 Dyn|
|00004dc0| 61 6d 69 63 61 6c 6c 79 | 20 63 6f 6d 70 6c 65 74 |amically| complet|
|00004dd0| 65 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 61 74 |e the co|mmand at|
|00004de0| 20 70 6f 69 6e 74 2e 0a | 54 68 69 73 20 66 75 6e | point..|This fun|
|00004df0| 63 74 69 6f 6e 20 69 73 | 20 73 69 6d 69 6c 61 72 |ction is| similar|
|00004e00| 20 74 6f 20 60 63 6f 6d | 69 6e 74 2d 64 79 6e 61 | to `com|int-dyna|
|00004e10| 6d 69 63 2d 63 6f 6d 70 | 6c 65 74 65 2d 66 69 6c |mic-comp|lete-fil|
|00004e20| 65 6e 61 6d 65 27 2c 20 | 65 78 63 65 70 74 20 74 |ename', |except t|
|00004e30| 68 61 74 20 69 74 0a 73 | 65 61 72 63 68 65 73 20 |hat it.s|earches |
|00004e40| 60 65 78 65 63 2d 70 61 | 74 68 27 20 28 6d 69 6e |`exec-pa|th' (min|
|00004e50| 75 73 20 74 68 65 20 74 | 72 61 69 6c 69 6e 67 20 |us the t|railing |
|00004e60| 65 6d 61 63 73 20 6c 69 | 62 72 61 72 79 20 70 61 |emacs li|brary pa|
|00004e70| 74 68 29 20 66 6f 72 20 | 63 6f 6d 70 6c 65 74 69 |th) for |completi|
|00004e80| 6f 6e 0a 63 61 6e 64 69 | 64 61 74 65 73 2e 20 20 |on.candi|dates. |
|00004e90| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 69 73 20 6d |Note tha|t this m|
|00004ea0| 61 79 20 6e 6f 74 20 62 | 65 20 74 68 65 20 73 61 |ay not b|e the sa|
|00004eb0| 6d 65 20 61 73 20 74 68 | 65 20 73 68 65 6c 6c 27 |me as th|e shell'|
|00004ec0| 73 20 69 64 65 61 20 6f | 66 20 74 68 65 0a 70 61 |s idea o|f the.pa|
|00004ed0| 74 68 2e 0a 0a 43 6f 6d | 70 6c 65 74 69 6f 6e 20 |th...Com|pletion |
|00004ee0| 69 73 20 64 65 70 65 6e | 64 65 6e 74 20 6f 6e 20 |is depen|dent on |
|00004ef0| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 60 73 68 |the valu|e of `sh|
|00004f00| 65 6c 6c 2d 63 6f 6d 70 | 6c 65 74 69 6f 6e 2d 65 |ell-comp|letion-e|
|00004f10| 78 65 63 6f 6e 6c 79 27 | 2c 20 70 6c 75 73 0a 74 |xeconly'|, plus.t|
|00004f20| 68 6f 73 65 20 74 68 61 | 74 20 65 66 66 65 63 74 |hose tha|t effect|
|00004f30| 20 66 69 6c 65 20 63 6f | 6d 70 6c 65 74 69 6f 6e | file co|mpletion|
|00004f40| 2e 20 20 53 65 65 20 60 | 73 68 65 6c 6c 2d 64 79 |. See `|shell-dy|
|00004f50| 6e 61 6d 69 63 2d 63 6f | 6d 70 6c 65 74 65 2d 61 |namic-co|mplete-a|
|00004f60| 73 2d 63 6f 6d 6d 61 6e | 64 27 2e 0a 0a 52 65 74 |s-comman|d'...Ret|
|00004f70| 75 72 6e 73 20 74 20 69 | 66 20 73 75 63 63 65 73 |urns t i|f succes|
|00004f80| 73 66 75 6c 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |sful...(|defalias|
|00004f90| 20 27 73 68 65 6c 6c 2d | 64 79 6e 61 6d 69 63 2d | 'shell-|dynamic-|
|00004fa0| 63 6f 6d 70 6c 65 74 65 | 2d 63 6f 6d 6d 61 6e 64 |complete|-command|
|00004fb0| 20 23 5b 6e 69 6c 20 22 | c0 20 89 19 ad 9f c2 20 | #[nil "|. ..... |
|00004fc0| 1b c4 8e c5 c6 09 5c 22 | 2a 3f ad 92 c7 94 8a c8 |......\"|*?......|
|00004fd0| c9 21 88 60 29 61 ad 86 | ca cb 21 88 cc 20 29 87 |.!.`)a..|..!.. ).|
|00004fe0| 22 20 5b 63 6f 6d 69 6e | 74 2d 6d 61 74 63 68 2d |" [comin|t-match-|
|00004ff0| 70 61 72 74 69 61 6c 2d | 66 69 6c 65 6e 61 6d 65 |partial-|filename|
|00005000| 20 66 69 6c 65 6e 61 6d | 65 20 6d 61 74 63 68 2d | filenam|e match-|
|00005010| 64 61 74 61 20 6d 61 74 | 63 68 2d 64 61 74 61 20 |data mat|ch-data |
|00005020| 28 28 73 74 6f 72 65 2d | 6d 61 74 63 68 2d 64 61 |((store-|match-da|
|00005030| 74 61 20 6d 61 74 63 68 | 2d 64 61 74 61 29 29 20 |ta match|-data)) |
|00005040| 73 74 72 69 6e 67 2d 6d | 61 74 63 68 20 22 5b 7e |string-m|atch "[~|
|00005050| 2f 5d 22 20 30 20 73 68 | 65 6c 6c 2d 62 61 63 6b |/]" 0 sh|ell-back|
|00005060| 77 61 72 64 2d 63 6f 6d | 6d 61 6e 64 20 31 20 6d |ward-com|mand 1 m|
|00005070| 65 73 73 61 67 65 20 22 | 43 6f 6d 70 6c 65 74 69 |essage "|Completi|
|00005080| 6e 67 20 63 6f 6d 6d 61 | 6e 64 20 6e 61 6d 65 2e |ng comma|nd name.|
|00005090| 2e 2e 22 20 73 68 65 6c | 6c 2d 64 79 6e 61 6d 69 |.." shel|l-dynami|
|000050a0| 63 2d 63 6f 6d 70 6c 65 | 74 65 2d 61 73 2d 63 6f |c-comple|te-as-co|
|000050b0| 6d 6d 61 6e 64 5d 20 34 | 20 28 23 24 20 2e 20 31 |mmand] 4| (#$ . 1|
|000050c0| 39 39 30 31 29 20 6e 69 | 6c 5d 29 0a 23 40 31 31 |9901) ni|l]).#@11|
|000050d0| 30 20 44 79 6e 61 6d 69 | 63 61 6c 6c 79 20 63 6f |0 Dynami|cally co|
|000050e0| 6d 70 6c 65 74 65 20 61 | 74 20 70 6f 69 6e 74 20 |mplete a|t point |
|000050f0| 61 73 20 61 20 63 6f 6d | 6d 61 6e 64 2e 0a 53 65 |as a com|mand..Se|
|00005100| 65 20 60 73 68 65 6c 6c | 2d 64 79 6e 61 6d 69 63 |e `shell|-dynamic|
|00005110| 2d 63 6f 6d 70 6c 65 74 | 65 2d 66 69 6c 65 6e 61 |-complet|e-filena|
|00005120| 6d 65 27 2e 20 20 52 65 | 74 75 72 6e 73 20 74 20 |me'. Re|turns t |
|00005130| 69 66 20 73 75 63 63 65 | 73 73 66 75 6c 2e 1f 0a |if succe|ssful...|
|00005140| 28 64 65 66 61 6c 69 61 | 73 20 27 73 68 65 6c 6c |(defalia|s 'shell|
|00005150| 2d 64 79 6e 61 6d 69 63 | 2d 63 6f 6d 70 6c 65 74 |-dynamic|-complet|
|00005160| 65 2d 61 73 2d 63 6f 6d | 6d 61 6e 64 20 23 5b 6e |e-as-com|mand #[n|
|00005170| 69 6c 20 22 c0 20 ae 81 | c1 1a c3 5c 6e 21 1c c5 |il ". ..|...\n!..|
|00005180| 0e 06 21 41 1e 07 c8 c9 | 0e 5c 6e 21 21 1e 0b 0e |..!A....|.\n!!...|
|00005190| 0c ad 86 cd ce 0e 0c cf | 23 1e 10 c1 1e 11 d2 1e |........|#.......|
|000051a0| 13 c1 1e 14 c1 1e 15 d2 | 1e 16 0e 07 ab e9 c8 d7 |........|........|
|000051b0| 0e 07 40 ae 81 d8 21 21 | 16 11 d9 0e 11 21 ad 85 |..@...!!|.....!..|
|000051c0| da 0c 0e 11 5c 22 89 16 | 13 ab c5 0e 13 40 16 14 |....\"..|.....@..|
|000051d0| 0e 11 0e 14 50 16 15 0e | 14 0e 16 b6 ac aa 0e 10 |....P...|........|
|000051e0| ab 88 db 0e 10 0e 14 5c | 22 ac 9e 0e 11 0e 0b 98 |.......\|".......|
|000051f0| ac 86 dc 0e 15 21 ac 91 | 0e 1d ab 86 de 0e 15 21 |.....!..|.......!|
|00005200| ab 87 0e 14 0e 16 42 16 | 16 0e 13 41 89 16 13 ac |......B.|...A....|
|00005210| 3b 0e 07 41 89 16 07 ac | 17 d2 1e 1f e0 0c 0e 16 |;..A....|........|
|00005220| 5c 22 29 89 1e 21 e2 73 | ab 8d 0e 1f ab 89 dc c0 |\")..!.s|........|
|00005230| 20 21 ac 83 e3 63 88 0e | 21 2e 0b 87 22 20 5b 63 | !...c..|!..." [c|
|00005240| 6f 6d 69 6e 74 2d 6d 61 | 74 63 68 2d 70 61 72 74 |omint-ma|tch-part|
|00005250| 69 61 6c 2d 66 69 6c 65 | 6e 61 6d 65 20 22 22 20 |ial-file|name "" |
|00005260| 66 69 6c 65 6e 61 6d 65 | 20 66 69 6c 65 2d 6e 61 |filename| file-na|
|00005270| 6d 65 2d 6e 6f 6e 64 69 | 72 65 63 74 6f 72 79 20 |me-nondi|rectory |
|00005280| 70 61 74 68 6e 6f 6e 64 | 69 72 20 72 65 76 65 72 |pathnond|ir rever|
|00005290| 73 65 20 65 78 65 63 2d | 70 61 74 68 20 70 61 74 |se exec-|path pat|
|000052a0| 68 73 20 66 69 6c 65 2d | 6e 61 6d 65 2d 61 73 2d |hs file-|name-as-|
|000052b0| 64 69 72 65 63 74 6f 72 | 79 20 65 78 70 61 6e 64 |director|y expand|
|000052c0| 2d 66 69 6c 65 2d 6e 61 | 6d 65 20 64 65 66 61 75 |-file-na|me defau|
|000052d0| 6c 74 2d 64 69 72 65 63 | 74 6f 72 79 20 63 77 64 |lt-direc|tory cwd|
|000052e0| 20 63 6f 6d 69 6e 74 2d | 63 6f 6d 70 6c 65 74 69 | comint-|completi|
|000052f0| 6f 6e 2d 66 69 67 6e 6f | 72 65 20 6d 61 70 63 6f |on-figno|re mapco|
|00005300| 6e 63 61 74 20 23 5b 28 | 78 29 20 22 c0 09 21 c2 |ncat #[(|x) "..!.|
|00005310| 50 87 22 20 5b 72 65 67 | 65 78 70 2d 71 75 6f 74 |P." [reg|exp-quot|
|00005320| 65 20 78 20 22 24 22 5d | 20 32 5d 20 22 5c 5c 7c |e x "$"]| 2] "\\||
|00005330| 22 20 69 67 6e 6f 72 65 | 64 2d 65 78 74 65 6e 73 |" ignore|d-extens|
|00005340| 69 6f 6e 73 20 70 61 74 | 68 20 6e 69 6c 20 63 6f |ions pat|h nil co|
|00005350| 6d 70 73 2d 69 6e 2d 70 | 61 74 68 20 66 69 6c 65 |mps-in-p|ath file|
|00005360| 20 66 69 6c 65 70 61 74 | 68 20 63 6f 6d 70 6c 65 | filepat|h comple|
|00005370| 74 69 6f 6e 73 20 63 6f | 6d 69 6e 74 2d 64 69 72 |tions co|mint-dir|
|00005380| 65 63 74 6f 72 79 20 22 | 2e 22 20 66 69 6c 65 2d |ectory "|." file-|
|00005390| 61 63 63 65 73 73 69 62 | 6c 65 2d 64 69 72 65 63 |accessib|le-direc|
|000053a0| 74 6f 72 79 2d 70 20 66 | 69 6c 65 2d 6e 61 6d 65 |tory-p f|ile-name|
|000053b0| 2d 61 6c 6c 2d 63 6f 6d | 70 6c 65 74 69 6f 6e 73 |-all-com|pletions|
|000053c0| 20 73 74 72 69 6e 67 2d | 6d 61 74 63 68 20 66 69 | string-|match fi|
|000053d0| 6c 65 2d 64 69 72 65 63 | 74 6f 72 79 2d 70 20 73 |le-direc|tory-p s|
|000053e0| 68 65 6c 6c 2d 63 6f 6d | 70 6c 65 74 69 6f 6e 2d |hell-com|pletion-|
|000053f0| 65 78 65 63 6f 6e 6c 79 | 20 66 69 6c 65 2d 65 78 |execonly| file-ex|
|00005400| 65 63 75 74 61 62 6c 65 | 2d 70 20 63 6f 6d 69 6e |ecutable|-p comin|
|00005410| 74 2d 63 6f 6d 70 6c 65 | 74 69 6f 6e 2d 61 64 64 |t-comple|tion-add|
|00005420| 73 75 66 66 69 78 20 63 | 6f 6d 69 6e 74 2d 64 79 |suffix c|omint-dy|
|00005430| 6e 61 6d 69 63 2d 73 69 | 6d 70 6c 65 2d 63 6f 6d |namic-si|mple-com|
|00005440| 70 6c 65 74 65 20 73 75 | 63 63 65 73 73 20 28 73 |plete su|ccess (s|
|00005450| 6f 6c 65 20 73 68 6f 72 | 74 65 73 74 29 20 22 20 |ole shor|test) " |
|00005460| 22 5d 20 35 20 28 23 24 | 20 2e 20 32 30 36 39 30 |"] 5 (#$| . 20690|
|00005470| 29 5d 29 0a 23 40 35 35 | 20 52 65 74 75 72 6e 20 |)]).#@55| Return |
|00005480| 74 68 65 20 76 61 72 69 | 61 62 6c 65 20 61 74 20 |the vari|able at |
|00005490| 70 6f 69 6e 74 2c 20 6f | 72 20 6e 69 6c 20 69 66 |point, o|r nil if|
|000054a0| 20 6e 6f 6e 20 69 73 20 | 66 6f 75 6e 64 2e 1f 0a | non is |found...|
|000054b0| 28 64 65 66 61 6c 69 61 | 73 20 27 73 68 65 6c 6c |(defalia|s 'shell|
|000054c0| 2d 6d 61 74 63 68 2d 70 | 61 72 74 69 61 6c 2d 76 |-match-p|artial-v|
|000054d0| 61 72 69 61 62 6c 65 20 | 23 5b 6e 69 6c 20 22 8a |ariable |#[nil ".|
|000054e0| 60 18 c1 c2 c3 c4 23 ab | 88 c5 c6 21 ac 83 c7 75 |`.....#.|...!...u|
|000054f0| 88 6c ae 83 c5 c8 21 3f | ad 8a c9 ca 08 5c 22 88 |.l....!?|.....\".|
|00005500| cb 94 cb 95 7b 2a 87 22 | 20 5b 6c 69 6d 69 74 20 |....{*."| [limit |
|00005510| 72 65 2d 73 65 61 72 63 | 68 2d 62 61 63 6b 77 61 |re-searc|h-backwa|
|00005520| 72 64 20 22 5b 5e 41 2d | 5a 61 2d 7a 30 2d 39 5f |rd "[^A-|Za-z0-9_|
|00005530| 7b 7d 5d 22 20 6e 69 6c | 20 6d 6f 76 65 20 6c 6f |{}]" nil| move lo|
|00005540| 6f 6b 69 6e 67 2d 61 74 | 20 22 5c 5c 24 22 20 31 |oking-at| "\\$" 1|
|00005550| 20 22 5b 5e 41 2d 5a 61 | 2d 7a 30 2d 39 5f 7b 7d | "[^A-Za|-z0-9_{}|
|00005560| 24 5d 22 20 72 65 2d 73 | 65 61 72 63 68 2d 66 6f |$]" re-s|earch-fo|
|00005570| 72 77 61 72 64 20 22 5c | 5c 24 3f 7b 3f 5b 41 2d |rward "\|\$?{?[A-|
|00005580| 5a 61 2d 7a 30 2d 39 5f | 5d 2a 7d 3f 22 20 30 5d |Za-z0-9_|]*}?" 0]|
|00005590| 20 34 20 28 23 24 20 2e | 20 32 31 36 32 35 29 5d | 4 (#$ .| 21625)]|
|000055a0| 29 0a 23 40 37 33 38 20 | 44 79 6e 61 6d 69 63 61 |).#@738 |Dynamica|
|000055b0| 6c 6c 79 20 63 6f 6d 70 | 6c 65 74 65 20 74 68 65 |lly comp|lete the|
|000055c0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 76 61 72 | environ|ment var|
|000055d0| 69 61 62 6c 65 20 61 74 | 20 70 6f 69 6e 74 2e 0a |iable at| point..|
|000055e0| 43 6f 6d 70 6c 65 74 65 | 73 20 69 66 20 61 66 74 |Complete|s if aft|
|000055f0| 65 72 20 61 20 76 61 72 | 69 61 62 6c 65 2c 20 69 |er a var|iable, i|
|00005600| 2e 65 2e 2c 20 69 66 20 | 69 74 20 73 74 61 72 74 |.e., if |it start|
|00005610| 73 20 77 69 74 68 20 61 | 20 22 24 22 2e 0a 53 65 |s with a| "$"..Se|
|00005620| 65 20 60 73 68 65 6c 6c | 2d 64 79 6e 61 6d 69 63 |e `shell|-dynamic|
|00005630| 2d 63 6f 6d 70 6c 65 74 | 65 2d 61 73 2d 65 6e 76 |-complet|e-as-env|
|00005640| 69 72 6f 6e 6d 65 6e 74 | 2d 76 61 72 69 61 62 6c |ironment|-variabl|
|00005650| 65 27 2e 0a 0a 54 68 69 | 73 20 66 75 6e 63 74 69 |e'...Thi|s functi|
|00005660| 6f 6e 20 69 73 20 73 69 | 6d 69 6c 61 72 20 74 6f |on is si|milar to|
|00005670| 20 60 63 6f 6d 69 6e 74 | 2d 64 79 6e 61 6d 69 63 | `comint|-dynamic|
|00005680| 2d 63 6f 6d 70 6c 65 74 | 65 2d 66 69 6c 65 6e 61 |-complet|e-filena|
|00005690| 6d 65 27 2c 20 65 78 63 | 65 70 74 20 74 68 61 74 |me', exc|ept that|
|000056a0| 20 69 74 0a 73 65 61 72 | 63 68 65 73 20 60 70 72 | it.sear|ches `pr|
|000056b0| 6f 63 65 73 73 2d 65 6e | 76 69 72 6f 6e 6d 65 6e |ocess-en|vironmen|
|000056c0| 74 27 20 66 6f 72 20 63 | 6f 6d 70 6c 65 74 69 6f |t' for c|ompletio|
|000056d0| 6e 20 63 61 6e 64 69 64 | 61 74 65 73 2e 20 20 4e |n candid|ates. N|
|000056e0| 6f 74 65 20 74 68 61 74 | 20 74 68 69 73 20 6d 61 |ote that| this ma|
|000056f0| 79 0a 6e 6f 74 20 62 65 | 20 74 68 65 20 73 61 6d |y.not be| the sam|
|00005700| 65 20 61 73 20 74 68 65 | 20 69 6e 74 65 72 70 72 |e as the| interpr|
|00005710| 65 74 65 72 27 73 20 69 | 64 65 61 20 6f 66 20 76 |eter's i|dea of v|
|00005720| 61 72 69 61 62 6c 65 20 | 6e 61 6d 65 73 2e 20 20 |ariable |names. |
|00005730| 54 68 65 20 6d 61 69 6e | 20 70 72 6f 62 6c 65 6d |The main| problem|
|00005740| 0a 77 69 74 68 20 74 68 | 69 73 20 74 79 70 65 20 |.with th|is type |
|00005750| 6f 66 20 63 6f 6d 70 6c | 65 74 69 6f 6e 20 69 73 |of compl|etion is|
|00005760| 20 74 68 61 74 20 60 70 | 72 6f 63 65 73 73 2d 65 | that `p|rocess-e|
|00005770| 6e 76 69 72 6f 6e 6d 65 | 6e 74 27 20 69 73 20 74 |nvironme|nt' is t|
|00005780| 68 65 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 0a 77 |he envir|onment.w|
|00005790| 68 69 63 68 20 45 6d 61 | 63 73 20 73 74 61 72 74 |hich Ema|cs start|
|000057a0| 65 64 20 77 69 74 68 2e | 20 20 45 6d 61 63 73 20 |ed with.| Emacs |
|000057b0| 64 6f 65 73 20 6e 6f 74 | 20 74 72 61 63 6b 20 63 |does not| track c|
|000057c0| 68 61 6e 67 65 73 20 74 | 6f 20 74 68 65 20 65 6e |hanges t|o the en|
|000057d0| 76 69 72 6f 6e 6d 65 6e | 74 20 6d 61 64 65 0a 62 |vironmen|t made.b|
|000057e0| 79 20 74 68 65 20 69 6e | 74 65 72 70 72 65 74 65 |y the in|terprete|
|000057f0| 72 2e 20 20 50 65 72 68 | 61 70 73 20 69 74 20 77 |r. Perh|aps it w|
|00005800| 6f 75 6c 64 20 62 65 20 | 6d 6f 72 65 20 61 63 63 |ould be |more acc|
|00005810| 75 72 61 74 65 20 69 66 | 20 74 68 69 73 20 66 75 |urate if| this fu|
|00005820| 6e 63 74 69 6f 6e 20 77 | 61 73 0a 63 61 6c 6c 65 |nction w|as.calle|
|00005830| 64 20 60 73 68 65 6c 6c | 2d 64 79 6e 61 6d 69 63 |d `shell|-dynamic|
|00005840| 2d 63 6f 6d 70 6c 65 74 | 65 2d 70 72 6f 63 65 73 |-complet|e-proces|
|00005850| 73 2d 65 6e 76 69 72 6f | 6e 6d 65 6e 74 2d 76 61 |s-enviro|nment-va|
|00005860| 72 69 61 62 6c 65 27 2e | 0a 0a 52 65 74 75 72 6e |riable'.|..Return|
|00005870| 73 20 6e 6f 6e 2d 6e 69 | 6c 20 69 66 20 73 75 63 |s non-ni|l if suc|
|00005880| 63 65 73 73 66 75 6c 2e | 1f 0a 28 64 65 66 61 6c |cessful.|..(defal|
|00005890| 69 61 73 20 27 73 68 65 | 6c 6c 2d 64 79 6e 61 6d |ias 'she|ll-dynam|
|000058a0| 69 63 2d 63 6f 6d 70 6c | 65 74 65 2d 65 6e 76 69 |ic-compl|ete-envi|
|000058b0| 72 6f 6e 6d 65 6e 74 2d | 76 61 72 69 61 62 6c 65 |ronment-|variable|
|000058c0| 20 23 5b 6e 69 6c 20 22 | c0 20 89 19 ad 8c c2 c3 | #[nil "|. ......|
|000058d0| 09 5c 22 ad 86 c4 c5 21 | 88 c6 20 29 87 22 20 5b |.\"....!|.. )." [|
|000058e0| 73 68 65 6c 6c 2d 6d 61 | 74 63 68 2d 70 61 72 74 |shell-ma|tch-part|
|000058f0| 69 61 6c 2d 76 61 72 69 | 61 62 6c 65 20 76 61 72 |ial-vari|able var|
|00005900| 69 61 62 6c 65 20 73 74 | 72 69 6e 67 2d 6d 61 74 |iable st|ring-mat|
|00005910| 63 68 20 22 5e 5c 5c 24 | 22 20 6d 65 73 73 61 67 |ch "^\\$|" messag|
|00005920| 65 20 22 43 6f 6d 70 6c | 65 74 69 6e 67 20 76 61 |e "Compl|eting va|
|00005930| 72 69 61 62 6c 65 20 6e | 61 6d 65 2e 2e 2e 22 20 |riable n|ame..." |
|00005940| 73 68 65 6c 6c 2d 64 79 | 6e 61 6d 69 63 2d 63 6f |shell-dy|namic-co|
|00005950| 6d 70 6c 65 74 65 2d 61 | 73 2d 65 6e 76 69 72 6f |mplete-a|s-enviro|
|00005960| 6e 6d 65 6e 74 2d 76 61 | 72 69 61 62 6c 65 5d 20 |nment-va|riable] |
|00005970| 34 20 28 23 24 20 2e 20 | 32 31 39 32 38 29 20 6e |4 (#$ . |21928) n|
|00005980| 69 6c 5d 29 0a 23 40 31 | 35 33 20 44 79 6e 61 6d |il]).#@1|53 Dynam|
|00005990| 69 63 61 6c 6c 79 20 63 | 6f 6d 70 6c 65 74 65 20 |ically c|omplete |
|000059a0| 61 74 20 70 6f 69 6e 74 | 20 61 73 20 61 6e 20 65 |at point| as an e|
|000059b0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 76 61 72 69 61 |nvironme|nt varia|
|000059c0| 62 6c 65 2e 0a 55 73 65 | 64 20 62 79 20 60 73 68 |ble..Use|d by `sh|
|000059d0| 65 6c 6c 2d 64 79 6e 61 | 6d 69 63 2d 63 6f 6d 70 |ell-dyna|mic-comp|
|000059e0| 6c 65 74 65 2d 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |lete-env|ironment|
|000059f0| 2d 76 61 72 69 61 62 6c | 65 27 2e 0a 55 73 65 73 |-variabl|e'..Uses|
|00005a00| 20 60 63 6f 6d 69 6e 74 | 2d 64 79 6e 61 6d 69 63 | `comint|-dynamic|
|00005a10| 2d 73 69 6d 70 6c 65 2d | 63 6f 6d 70 6c 65 74 65 |-simple-|complete|
|00005a20| 27 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 |'...(def|alias 's|
|00005a30| 68 65 6c 6c 2d 64 79 6e | 61 6d 69 63 2d 63 6f 6d |hell-dyn|amic-com|
|00005a40| 70 6c 65 74 65 2d 61 73 | 2d 65 6e 76 69 72 6f 6e |plete-as|-environ|
|00005a50| 6d 65 6e 74 2d 76 61 72 | 69 61 62 6c 65 20 23 5b |ment-var|iable #[|
|00005a60| 6e 69 6c 20 22 c0 20 ae | 81 c1 89 1a c3 c4 5c 6e |nil ". .|......\n|
|00005a70| 5c 22 ae 81 c5 c6 4f 1e | 07 c8 c9 0e 5c 6e 5c 22 |\"....O.|....\n\"|
|00005a80| 1e 0b 0e 0c 1e 0d c6 1e | 0c ce 0e 07 0e 0b 5c 22 |........|......\"|
|00005a90| 89 1e 0f d0 73 ab c0 c0 | 20 89 1a c3 d1 5c 6e 5c |....s...| ....\n\|
|00005aa0| 22 c6 4f 1e 07 c3 d2 5c | 6e 5c 22 ab 83 d3 aa 8a |".O....\|n\".....|
|00005ab0| c3 d4 5c 6e 5c 22 ab 83 | d5 aa 81 c1 1e 16 0e 0d |..\n\"..|........|
|00005ac0| ac 83 c1 aa 8e d7 d8 d9 | 0e 07 21 21 21 ab 83 da |........|..!!!...|
|00005ad0| aa 81 db 1e 1c 0e 16 0e | 1c b1 02 88 2c 0e 0f 2e |........|....,...|
|00005ae0| 06 87 22 20 5b 73 68 65 | 6c 6c 2d 6d 61 74 63 68 |.." [she|ll-match|
|00005af0| 2d 70 61 72 74 69 61 6c | 2d 76 61 72 69 61 62 6c |-partial|-variabl|
|00005b00| 65 20 22 22 20 76 61 72 | 20 73 74 72 69 6e 67 2d |e "" var| string-|
|00005b10| 6d 61 74 63 68 20 22 5b | 5e 24 28 7b 5d 5c 5c 7c |match "[|^$({]\\||
|00005b20| 24 22 20 30 20 6e 69 6c | 20 76 61 72 69 61 62 6c |$" 0 nil| variabl|
|00005b30| 65 20 6d 61 70 63 61 72 | 20 23 5b 28 78 29 20 22 |e mapcar| #[(x) "|
|00005b40| 08 c1 c2 c3 08 5c 22 4f | 87 22 20 5b 78 20 30 20 |.....\"O|." [x 0 |
|00005b50| 73 74 72 69 6e 67 2d 6d | 61 74 63 68 20 22 3d 22 |string-m|atch "="|
|00005b60| 5d 20 35 5d 20 70 72 6f | 63 65 73 73 2d 65 6e 76 |] 5] pro|cess-env|
|00005b70| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|00005b80| 65 73 20 63 6f 6d 69 6e | 74 2d 63 6f 6d 70 6c 65 |es comin|t-comple|
|00005b90| 74 69 6f 6e 2d 61 64 64 | 73 75 66 66 69 78 20 61 |tion-add|suffix a|
|00005ba0| 64 64 73 75 66 66 69 78 | 20 63 6f 6d 69 6e 74 2d |ddsuffix| comint-|
|00005bb0| 64 79 6e 61 6d 69 63 2d | 73 69 6d 70 6c 65 2d 63 |dynamic-|simple-c|
|00005bc0| 6f 6d 70 6c 65 74 65 20 | 73 75 63 63 65 73 73 20 |omplete |success |
|00005bd0| 28 73 6f 6c 65 20 73 68 | 6f 72 74 65 73 74 29 20 |(sole sh|ortest) |
|00005be0| 22 5b 5e 24 28 7b 5d 22 | 20 22 7b 22 20 22 7d 22 |"[^$({]"| "{" "}"|
|00005bf0| 20 22 28 22 20 22 29 22 | 20 70 72 6f 74 65 63 74 | "(" ")"| protect|
|00005c00| 69 6f 6e 20 66 69 6c 65 | 2d 64 69 72 65 63 74 6f |ion file|-directo|
|00005c10| 72 79 2d 70 20 63 6f 6d | 69 6e 74 2d 64 69 72 65 |ry-p com|int-dire|
|00005c20| 63 74 6f 72 79 20 67 65 | 74 65 6e 76 20 22 2f 22 |ctory ge|tenv "/"|
|00005c30| 20 22 20 22 20 73 75 66 | 66 69 78 5d 20 35 20 28 | " " suf|fix] 5 (|
|00005c40| 23 24 20 2e 20 32 32 39 | 32 33 29 5d 29 0a 23 40 |#$ . 229|23)]).#@|
|00005c50| 31 38 31 20 45 78 70 61 | 6e 64 20 64 69 72 65 63 |181 Expa|nd direc|
|00005c60| 74 6f 72 79 20 73 74 61 | 63 6b 20 72 65 66 65 72 |tory sta|ck refer|
|00005c70| 65 6e 63 65 20 62 65 66 | 6f 72 65 20 70 6f 69 6e |ence bef|ore poin|
|00005c80| 74 2e 0a 44 69 72 65 63 | 74 6f 72 79 20 73 74 61 |t..Direc|tory sta|
|00005c90| 63 6b 20 72 65 66 65 72 | 65 6e 63 65 73 20 61 72 |ck refer|ences ar|
|00005ca0| 65 20 6f 66 20 74 68 65 | 20 66 6f 72 6d 20 22 3d |e of the| form "=|
|00005cb0| 64 69 67 69 74 22 20 6f | 72 20 22 3d 2d 22 2e 0a |digit" o|r "=-"..|
|00005cc0| 53 65 65 20 60 64 65 66 | 61 75 6c 74 2d 64 69 72 |See `def|ault-dir|
|00005cd0| 65 63 74 6f 72 79 27 20 | 61 6e 64 20 60 73 68 65 |ectory' |and `she|
|00005ce0| 6c 6c 2d 64 69 72 73 74 | 61 63 6b 27 2e 0a 0a 52 |ll-dirst|ack'...R|
|00005cf0| 65 74 75 72 6e 73 20 74 | 20 69 66 20 73 75 63 63 |eturns t| if succ|
|00005d00| 65 73 73 66 75 6c 2e 1f | 0a 28 64 65 66 61 6c 69 |essful..|.(defali|
|00005d10| 61 73 20 27 73 68 65 6c | 6c 2d 72 65 70 6c 61 63 |as 'shel|l-replac|
|00005d20| 65 2d 62 79 2d 65 78 70 | 61 6e 64 65 64 2d 64 69 |e-by-exp|anded-di|
|00005d30| 72 65 63 74 6f 72 79 20 | 23 5b 6e 69 6c 20 22 c0 |rectory |#[nil ".|
|00005d40| 20 ad c9 8a c1 94 62 88 | 5c 6e 0b 42 c4 c5 21 ab | .....b.|\n.B..!.|
|00005d50| 84 0b 47 aa 8c c4 c6 21 | ad 87 c7 c8 94 c8 95 7b |..G....!|.......{|
|00005d60| 21 1e 09 1e 5c 6e 0e 09 | ac 83 cb aa a0 0e 09 0e |!...\n..|........|
|00005d70| 5c 6e 47 59 ab 85 cc cd | 21 aa 93 ce cf 0e 09 0e |\nGY....|!.......|
|00005d80| 5c 6e 38 21 d0 89 23 88 | d1 d2 0e 09 5c 22 88 d0 |\n8!..#.|....\"..|
|00005d90| 2b 87 22 20 5b 63 6f 6d | 69 6e 74 2d 6d 61 74 63 |+." [com|int-matc|
|00005da0| 68 2d 70 61 72 74 69 61 | 6c 2d 66 69 6c 65 6e 61 |h-partia|l-filena|
|00005db0| 6d 65 20 30 20 64 65 66 | 61 75 6c 74 2d 64 69 72 |me 0 def|ault-dir|
|00005dc0| 65 63 74 6f 72 79 20 73 | 68 65 6c 6c 2d 64 69 72 |ectory s|hell-dir|
|00005dd0| 73 74 61 63 6b 20 6c 6f | 6f 6b 69 6e 67 2d 61 74 |stack lo|oking-at|
|00005de0| 20 22 3d 2d 2f 3f 22 20 | 22 3d 5c 5c 28 5b 30 2d | "=-/?" |"=\\([0-|
|00005df0| 39 5d 2b 5c 5c 29 22 20 | 73 74 72 69 6e 67 2d 74 |9]+\\)" |string-t|
|00005e00| 6f 2d 6e 75 6d 62 65 72 | 20 31 20 69 6e 64 65 78 |o-number| 1 index|
|00005e10| 20 73 74 61 63 6b 20 6e | 69 6c 20 65 72 72 6f 72 | stack n|il error|
|00005e20| 20 22 44 69 72 65 63 74 | 6f 72 79 20 73 74 61 63 | "Direct|ory stac|
|00005e30| 6b 20 6e 6f 74 20 74 68 | 61 74 20 64 65 65 70 2e |k not th|at deep.|
|00005e40| 22 20 72 65 70 6c 61 63 | 65 2d 6d 61 74 63 68 20 |" replac|e-match |
|00005e50| 66 69 6c 65 2d 6e 61 6d | 65 2d 61 73 2d 64 69 72 |file-nam|e-as-dir|
|00005e60| 65 63 74 6f 72 79 20 74 | 20 6d 65 73 73 61 67 65 |ectory t| message|
|00005e70| 20 22 44 69 72 65 63 74 | 6f 72 79 20 69 74 65 6d | "Direct|ory item|
|00005e80| 3a 20 25 64 22 5d 20 34 | 20 28 23 24 20 2e 20 32 |: %d"] 4| (#$ . 2|
|00005e90| 33 36 33 36 29 20 6e 69 | 6c 5d 29 0a 28 70 72 6f |3636) ni|l]).(pro|
|00005ea0| 76 69 64 65 20 27 73 68 | 65 6c 6c 29 0a |vide 'sh|ell). |
+--------+-------------------------+-------------------------+--------+--------+